I have json data like this
FixedFields: {
"DocType": {
"fieldValueOnChange": "",
"operatorStyle": "width:80%",
"fieldType": "Fixed",
"operatorOnChange": "selectFixedFieldType(this);",
"contextpath": "/iTunes",
"validations": {
"alphaNumeric": {
}
},
"fieldValueType": "text",
"OperatorTypes": {
"not equals to": "text",
"equal to": "text",
"paste list": "textarea",
"starts with": "text",
"contains": "text"
},
"fieldValueStyle": "width:90%"
},
"Amount": {
"fieldValueOnChange": "",
"operatorStyle": "width:80%",
"fieldType": "Fixed",
"operatorOnChange": "selectFixedFieldType(this);",
"contextpath": "/iTunes",
"validations": {
"numericDouble": {
"limit": "16"
}
},
"fieldValueType": "text",
"OperatorTypes": {
"equal to": "text",
"not equals to": "text",
"between": "textbetween",
"less than": "text",
"less than or equal to": "text",
"greater than": "text",
"greater than or equal to": "text"
},
"fieldValueStyle": "width:35%;"
}
}
The problem is that I would like to identify the label name and value and render in a mustache template and I do not know how the JSON structure from my web service response would look like.
I know it can be done with json parsing by
for(key in array) {...}
How can I do templating in mustache for whose data i'm not sure of the structure? Thanks in advance