Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Extract JSON parameters from trestClient response

Hello,

 

I receive a String containing a JSON from my tRestClient response. How I can extract a parameter from that JSON?


Thanks.

Labels (4)
2 Replies
Anonymous
Not applicable
Author

Try to use tExtractJsonField to extract data from the json response. Let me know if you have troubles to use this component and show an example of json response.
Anonymous
Not applicable
Author

I don't know how to take the 'id' parameter from that json using tExtractJsonField .

 

Here's an example of that json:

 

{
  "id": "cus_test",
  "object": "customer",
  "account_balance": 0,
  "created": 1493201430,
  "currency": null,
  "default_source": null,
  "delinquent": false,
  "description": "Living",
  "discount": null,
  "email": "test@test.com",
  "livemode": false,
  "metadata": {},
  "shipping": null,
  "sources": {
    "object": "list",
    "data": [],
    "has_more": false,
    "total_count": 0,
    "url": "/v1/customers/cus_test/sources"
  },
  "subscriptions": {
    "object": "list",
    "data": [],
    "has_more": false,
    "total_count": 0,
    "url": "/v1/customers/cus_test/subscriptions"
  }
}