In JSON, the string should be in double quotation marks. It was found from the previous example that the double quotation marks can be omitted and can be omitted with spaces.
Of course, onlyProgramCodeCan be omitted, the object will automatically identify the added.
In this case, the following methods can be used:
Uses superobject; Procedure tform1.button1click (Sender: tobject); var jo1, JO2, jo3: isuperobject; begin jo1: = So ('{"name": "zhangsan", "Age ": "Li Si"} '); showmessage (jo1.asjson (false, false); JO2: = So (' {Name: Zhang San, age: Li Si }'); showmessage (jo2.asjson (false, false); jo3: = So ('{name 1: Three, age 2: Li Si}'); showmessage (jo3.asjson (false, false); {If double quotation marks are not used, the leading and trailing spaces are also recognized; or double quotation marks should be used whenever possible} end;