Parsley Parser
HI James,
This is good work. I'm using this to create a datashape on the fly from an input JSON definition, and that does work, except that the order of fields in the datashape is completely random and bears no relation to the order in the JSON string.
Any ideas? I'm importing a .CSV and the datashape order must reflect accurately the order in the .CSV
// THE RESULTING DATASHAPE IS NOT IN THE SAME ORDER
var jsonDataDef = '[{"Name":"","System":"", "Assembly":"","SID":"","Part#":""}]';
var jsonDataModel = JSON.parse(jsonDataDef);
var params = {
dateFormat: "RAW",
json: jsonDataModel,
dataShape: undefined,
minDataMilliseconds: undefined
};
var res = Resources["Parsley"].ParseJSON(params).array;
result = res;

