Hi
I'm just starting with JSON GENERATE in Visual COBOL for Eclipse 5.0.
I have a question is how to represent the JSON string shown below in the DATA DIVISION..
The JSON example in the SAMPLE folder uses the NAME entity a 01 level data name for the FROM identifier in the JSON GENERATE statement but my JSON starts with 3 items at the same level.
So what do I use as the "FROM" identifier. If I make the 3 name pairs 05 levels won't the dummy 01 level item be generated in the JSON?
{ "jsonrpc": "2.0", "message": "GarmentInfo", "params": { "general": { "ID": "ni1", "0-0": "ni1", "0-1": "Prod variable", "1-0": "Sylte Variable", "1-1": "Color var", "1-2": "Fabric Arcticle Var", "1-3": "Size Var", "units": 1 }, "sections": [ { "name": "section 1", "expected": "10.0", "min": "9.5", "max": "10.5", "sensor": 1, "laser1": 0, "laser2": 0 }, { "name": "section 2", "expected": "", "min": "", "max": "", "sensor": 4, "laser1": 0, "laser2": 0 }, { "name": "section 3", "expected": "20.0", "min": "19.0", "max": "21.0", "sensor": 10, "laser1": 0, "laser2": 0 } ] } }



