Login  Register

Re: How to query a JSON

Posted by Stephane Ducasse-3 on May 25, 2017; 7:24am
URL: https://forum.world.st/How-to-query-a-JSON-tp4948175p4948213.html

mark 
what you can also do is to generate the classes from the json 
we did that for certain libraries.

Stef

On Wed, May 24, 2017 at 4:20 PM, Marc Hanisch via Pharo-users <[hidden email]> wrote:


---------- Forwarded message ----------
From: Marc Hanisch <[hidden email]>
To: Any question about pharo is welcome <[hidden email]>
Cc: 
Bcc: 
Date: Wed, 24 May 2017 16:20:14 +0200
Subject: How to query a JSON
Hello,

is there a way to query a JSON with a path (JSONPath or some custom format)?

I want to query an API and collect the JSON responses, which I need to iterate over to extract some data. Modelling the JSON structure as classes would be too much overhead, I think. I just want to collect some values...

Thanks in advance,
Marc