If my JSON has a LIST of strings, how to do the JSON structure mapping. - Mendix Forum

If my JSON has a LIST of strings, how to do the JSON structure mapping.

0

I have a JSON which has list of strings. 

{  
   "Usecases":[  
      "UC02",
      "SINGLE_DR_WITH_PROJ_IDS",
      "SINGLE_DR_WITH_PROJ_CL"
   ]
}

Now, when I do the JSON structue Mapping. I am getting only “UC02” not the list in the value. Is this correct?

asked
3 answers
2

Hello Manish,

The Wrapper object in your mapping is associating to multiple values – you can see this on the right side under Occurrence (0..*) therefore it can handle your list.

Hope this helps

answered
1

@Eric  Thanks a ton Eric, your exactly caught where I was doing mistake. 

answered
1

Thanks @Dragos for the reply,

I am getting this JSON data from a REST API, and when I am trying to consume this data in a “Dataview” through the return value of a microflow, I am not getting the “Wrapper” or any relationship inside that dataview.

answered