Login  Register

Re: New Pharo user, some questions

Posted by Sven Van Caekenberghe-2 on Dec 10, 2014; 11:26pm
URL: https://forum.world.st/New-Pharo-user-some-questions-tp4795325p4795369.html


> On 10 Dec 2014, at 21:26, dboeren <[hidden email]> wrote:
>
> "Fetch the raw JSON data from dtdb.co"
> response := 'http://dtdb.co/api/cards/' asUrl retrieveContents asString.

Why no do

NeoJSONReader fromString: 'http://dtdb.co/api/cards/' asUrl retrieveContents

?

You'll get the data back, nicely parsed and converted to proper Pharo strings.

Sven