JSON Card
Display JSON response data from API
Last updated
Display JSON response data from API
Last updated
To add a JSON card to your reports,
Click the icon on the left toolbar.
Drag select an area you want to add the JSON card on the report.
URL: enter the full URL that you want to get data from. Note:
Because of security policies, your URL have to use https scheme.
Can include a param and allow user to change it in a filter.
Request method:
Get: retrieve data from a server at the specified resource.
Post: send data to a server to create/update a resource.
Request timeout: maximum time when trying to call API. When request time exceeds the maximum, we will show an error. Note: Leave it empty if you don’t want to set a maximum time.
Data path: path to a property of response JSON object (in case user don’t want to display whole response object)\
Note: leave it empty to display whole response
Example: When your api response with: { status: “success” data: { propertyA: “valuable data” } } And you want to show only “valuable data", you can config data path = data.propertyA
Choose the look for your JSON card
Click on tab “Style” in the right panel
Tooltip note: Note on the box, then you can see the question mark on the top right corner of filter
The rest styling options appear on the bottom toolbar
JSON Card style
Fill color: Fill color to the box
Border:
Weight: choose weight for the line of filter box
Radius: Choose to round filter box
Style: Style the line of filter box
Add box shadow: enable if you want to give the log element a more prominent look