Method for Working with JSON

To get JSON resource data, execute request using the "json" API method (determine user token before executing the request).

curl -v '<IP address or DNS server name>/api/v1/json/<resource name>/' -H 'Authorization: Bearer <user token>' --header 'Content-Type: application/json'

The example of response on successful resource request:

* Trying 0.0.0.0...
* TCP_NODELAY set
* Connected to <IP address or DNS server name> (0.0.0.0) port 80 (#0)
> GET /api/v1/json/<resource name>/ HTTP/1.1
> Host: <IP address or DNS server name>
> User-Agent: curl/7.68.0
> Accept: */*
> Authorization: Bearer <user token>
> Content-Type: application/json
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: nginx/1.16.1
< Date: <date>
< Content-Type: application/json; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Cache-Hash-Value: output_table-Hash%<hash sum>
< ETag: "<ETag identifier>"
< Expires: <date>
< Last-Modified: <date>
< Content-Version: <version number>
< Vary: Accept, Origin, Cookie, Accept-Encoding
< Allow: GET, HEAD, OPTIONS
< X-Frame-Options: SAMEORIGIN
<
* Connection #0 to host <IP address or DNS server name> left intact
[
  {
    "name": "table1",
    "data": [
      [
        1,
        "Oranges",
        112.0,
        1
      ],
      [
        2,
        "Peaches",
        116.0,
        0
      ]
    ]
  },
  {
    "name": "table2",
    "data": [
      [
        1,
        "Apples2",
        115.0,
        1
      ],
      [
        2,
        "Peaches2",
        116.0,
       0
      ]
    ]
  }
]

See also:

Server API | Connecting Data Sources