Feb. 25, 2019
9:05 p.m.
Your #fromJSON: methods should be on the class not the instance side.
On 25 Feb 2019, at 21:52, Roelof Wobben <r.wobben@home.nl> wrote:
Hello,
I try to ask a api for some data and then display the data I want.
But when I do :
json := (NeoJSONReader fromString: (ZnEasy get: 'https://www.rijksmuseum.nl/api/nl/collection?key=14OGzuak&format=json&type=s... ') contents).
Paintings new fromJSON: json
I still see a message that Paintings do not understand new.
What did I do wrong here.
I will include a file-out of my code
Regards,
Roelof
<Paintings.st>