Lazarus
Programming => General => Topic started by: Jzhen on February 09, 2023, 10:04:58 am
-
Student student = new Student();
student.setId(1);
student.setAge("20");
student.setName("jno");
System.out.println(JSON.toJSON(student));
String stuString = JSONObject.toJSONString(student);
jsonObject.ToString or jsonObject.ToJSON cannot implement such conversion. What should i do?
-
https://wiki.lazarus.freepascal.org/Streaming_JSON
-
https://wiki.freepascal.org/LGenerics#Exporting_structures_to_JSON_format
-
https://wiki.lazarus.freepascal.org/Streaming_JSON
This is a record. Can it be implemented without changing the data type? I think it needs to inherit TPersistent. This modification may not be accepted by the company.
-
https://wiki.freepascal.org/LGenerics#Exporting_structures_to_JSON_format
I still view it in the watch list