Forum Discussion
New2API
8 years agoFrequent Contributor
Hello there! please correct me if I am wrong.
I think, according to you one dimensional JSON is something like this:
{
"ID": 1,
"Type": Books,
"Qty":300
}
where you do not have subset inside JSON array. And multidimensional is the one you mentioned in your question. I am not sure how you are going to get base template or sub-level json.
I did build my JSON using jsonbuilder. But for main and sub-level JSON, I was getting data from two different Get methods and then I used 'Map' to modify or add sub-level to main JSON response.
in your ex: ats is a map, ac is a map, pr is a map.
please refer to below link. It might shed some light to your problems.
Good luck!
Related Content
- 6 years agosergioalifano
- 4 years agokiwi7