Op 16-3-2019 om 22:24 schreef Sven Van Caekenberghe:
imageUrl1 := levelsJson detect: [ :item | item name = 'z4' ]. imageUrl := imageUrl1 tiles first url. Thanks
I used NeoJsonReader. After chancing it to NeoJsonObject It worked. I think I can do the same here : json := NeoJSONReader fromString: (ZnEasy get: url) contents. Â Â Â artObjectJson := json at: #artObject. Â Â Â painter := ((artObjectJson at: #principalMakers) at: 1) at: #name. Â Â Â title := artObjectJson at: #title. and here (json at: #artObjects) Â Â Â Â Â Â do: [ :eachArtObject | Â Â Â Â Â Â Â Â Â | painting | Â Â Â Â Â Â Â Â Â painting := Painting new. Â Â Â Â Â Â Â Â Â painting objectNumber: (eachArtObject at: #objectNumber). Â Â Â Â Â Â Â Â Â paintings addPainting: painting ]. Â Â Â ^ paintings I will try that tomorrow. Now time to sleep here Roelof