JSON Parser?

Hi,


I've managed to login to my REST server okay via the TWebLoginPanel.  I'm using JWT, so the response I'm gettting is a JSON string.  

In order to make subsequent requests I need the AccessToken, which I'm need to extract from the AResponse parameter in the OnResponse event by using JSON.

However, when I add SYSTEM.JSON to the uses clause, I get a compile error:

[Error] unit3.pas(33): can't find unit "JSON"

So I attempted to add JSONDataObjects (via Andy Hausladen), which gives me this:

[Error] JsonDataObjects.pas(147): identifier not found "PResStringRec"

Can someone help me get a working JSON parser please?

Thanks

Unit for JSON is WEBLib.JSON

This unit is used in the demo Services\Simple or Services\Google Calendar for example


Thanks Bruno.