[Pharo-users] how the best deal with this

2020-09-27 Thread Roelof Wobben via Pharo-users
Hello, I have this code : getMoreData     | url url2 json json2 artObjectJson levelsJson|     url := 'https://www.rijksmuseum.nl/api/nl/collection/' , objectNumber         , '?key=14OGzuak=json'.     url2 := 'https://www.rijksmuseum.nl/api/nl/collection/'         , objectNumber ,

[Pharo-users] Re: why is ZnEasy choking on this and languages as c# and ruby not

2020-09-27 Thread Esteban Maringolo
Hi Roelof, As pointed in the Discord chat, and just for others to know, the HTTP response is not correct since it doesn't set any MIME Type, so Zinc (ZnEasy) does the correct thing that it is to assume the content is application/octet-stream, so you get a ByteArray. If you decode such bytearray

[Pharo-users] Re: why is ZnEasy choking on this and languages as c# and ruby not

2020-09-27 Thread Sven Van Caekenberghe
> On 27 Sep 2020, at 19:34, Roelof Wobben via Pharo-users > wrote: > > Hello, > > In a project of mine I do this : > > (ZnEasy get: > 'https://www.rijksmuseum.nl/api/nl/collection/SK-C-1368/tiles?key=14OGzuak' > ) contents . > > but this is given me a bytearray. > > When I do the

[Pharo-users] why is ZnEasy choking on this and languages as c# and ruby not

2020-09-27 Thread Roelof Wobben via Pharo-users
Hello, In a project of mine I do this :  (ZnEasy get: 'https://www.rijksmuseum.nl/api/nl/collection/SK-C-1368/tiles?key=14OGzuak') contents . but this is given me a bytearray. When I do the same in other languages I know like c# or ruby I get a dictionary like I