Layale,
It all depends on the API. It seems like you are making a call to a REST API, so you have many options.
If you are on Cloverleaf 6.2 and are licensed for the Web Services Adapter (CAA-WS), you can use the GUI since JSON support has been added to 6.2.
Otherwise, you can use a UPOC thread and write some code. You could use CURL to make the API call. Another alternative would be to use the ‘rest’ package to make the API call then the ‘json’ package to convert the json reply to a Tcl dictionary. Then use dict commands to parse the dictionary.
package require rest
package require json
….
::json::json2dict the_json_reply
If you know Java, you have even more libraries to get and parse the JSON.
I hope this helps.