JSON Data Source Outside the Root Object


(Nick Papadatos) #1

Matrix Version: 5.5
I’m trying to access json data outside the root for example:

{ 
  "page_info": {
    "next_page": 2,
    "last_page": 140,
    "page_size":10
},
"root":[
  {...

I can access all the root data by adding the json root object but was wondering how to include the page_info that sits outside the root. Adding the correct value in the JSON Data Attributes?

Any ideas?

Cheers
Nick


(Bart Banda) #2

I think you have to request it again separately with another REST call (I assume it’s a JSON URL you’re hitting?) to get that info as it’s not part of the record data as they are not records.


(Nick Papadatos) #3

Thanks Bart
Yeah, I ended up doing just that and yes, it’s a JSON URL i’m calling.
Cheers
Nick