It is very important that I can depend on these functions to handle conversion of arrays of dataobjects to json and vice-versa.
I wrote a webservice that needs to communicate via restful methods rather than soap.
Sometimes I get an IDSC, other times a runtime error inside the Xbase++ code.
Here is an example of a JSON object that causes a runtime error with Json2Var() :
Code: Select all
{ "data" :[
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"9K99", "Model" :"Crown Victoria ", "Fuel" :"Gas "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"3L55", "Model" :"Crown Victoria ", "Fuel" :"Gas "},
{"Type" :"Suv ", "Make" :"Ford ", "Medallion" :"2P17", "Model" :"Escape ", "Fuel" :"Hybrid "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"1A38", "Model" :"CVC ", "Fuel" :"Gas "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"1A45", "Model" :"C-max ", "Fuel" :"Hybrid "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"1B40", "Model" :"CVC ", "Fuel" :"Gas "},
{"Type" :"Suv ", "Make" :"Ford ", "Medallion" :"1C18", "Model" :"Escape ", "Fuel" :"Hybrid "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"1C79", "Model" :"Escape ", "Fuel" :"Hybrid "},
{"Type" :"Minivan ", "Make" :"Ford ", "Medallion" :"1A14", "Model" :"Escape ", "Fuel" :"Gas "},
{"Type" :"Minivan ", "Make" :"Ford ", "Medallion" :"1A14", "Model" :"Escape ", "Fuel" :"Gas "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"1A24", "Model" :"Crown Victoria ", "Fuel" :"Gas "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"1A55", "Model" :"Crown Victoria ", "Fuel" :"Gas "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"1A55", "Model" :"Crown Victoria ", "Fuel" :"Gas "},
{"Type" :"Suv ", "Make" :"Ford ", "Medallion" :"1B64", "Model" :"Escape ", "Fuel" :"Hybrid "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"1C44", "Model" :"Crown Victoria ", "Fuel" :"Gas "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"1D29", "Model" :"Crown Victoria ", "Fuel" :"Gas "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"1D29", "Model" :"Crown Victoria ", "Fuel" :"Gas "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"1D29", "Model" :"Crown Victoria ", "Fuel" :"Gas "},
{"Type" :"Suv ", "Make" :"Ford ", "Medallion" :"1E22", "Model" :"Escape ", "Fuel" :"Hybrid "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"2H98", "Model" :"Crown Victoria ", "Fuel" :"Gas "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"2H99", "Model" :"Crown Victoria ", "Fuel" :" "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"2H99", "Model" :"Crown Victoria ", "Fuel" :" "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"2H99", "Model" :"Crown Victoria ", "Fuel" :" "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"2H99", "Model" :"Crown Victoria ", "Fuel" :" "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"2H99", "Model" :"Crown Victoria ", "Fuel" :" "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"2H99", "Model" :"Crown Victoria ", "Fuel" :" "},
{"Type" :"Suv ", "Make" :"Ford ", "Medallion" :"2J50", "Model" :"Escape ", "Fuel" :"Gas "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"2J50", "Model" :" ", "Fuel" :"GAS "},
{"Type" :"4Door Sed ", "Make" :"Ford ", "Medallion" :"2J85", "Model" :" ", "Fuel" :"GAS "}
], "result" :"Success", "error" :null}