|
Op 11-3-2019 om 00:03 schreef Ben
Coman:
hello Ben, I think I almost see what you mean but still one problem when doing this code : collectionUrl := 'https://www.rijksmuseum.nl/api/nl/collection?key=14OGzuak&format=json&type=schilderij&toppieces=True'. json := NeoJSONReader fromString: (ZnEasy get: collectionUrl) contents. paintings := Paintings fromJSON: json. paintings do: [:painting | painting getMoreData ] here I see a error : instance of Paintings do not understand do: I think we have to get the directory named paintings out of the object, this seems to be working : collectionUrl := 'https://www.rijksmuseum.nl/api/nl/collection?key=14OGzuak&format=json&type=schilderij&toppieces=True'. json := NeoJSONReader fromString: (ZnEasy get: collectionUrl) contents. paintings := Paintings fromJSON: json. (paintings paintings) do: [:painting | painting getMoreData ] Roelof |
- Re: [Pharo-users] complex json parsing. Roelof Wobben
- Re: [Pharo-users] complex json parsing. Ben Coman
- Re: [Pharo-users] complex json parsing. Roelof Wobben
- Re: [Pharo-users] complex json parsing. Ben Coman
- Re: [Pharo-users] complex json parsing. Roelof Wobben
- Re: [Pharo-users] complex json parsing. Ben Coman
- Re: [Pharo-users] complex json parsing. Roelof Wobben
- Re: [Pharo-users] complex json parsing. Ben Coman
- Re: [Pharo-users] complex json parsing. Roelof Wobben
- Re: [Pharo-users] complex json parsing. Ben Coman
- Re: [Pharo-users] complex json parsing. Roelof Wobben
- Re: [Pharo-users] complex json parsing. Ben Coman
- Re: [Pharo-users] complex json parsing. Ben Coman
