dbxjson

How do I convert a string to and from JSON with escaped/special characters using DBXJSON?

你。 提交于 2019-12-03 06:51:05
问题 I'm having trouble converting a string with escaped characters to and from a TJsonString. (I'm using Delphi XE 2, Update 4, Hotfix 1). NOTE: I am familiar with the SuperObject, but my requirements are to use the DBXJSON unit. It looks like the TJSONString is not correctly escaped when returning the JSON representation via the ToString() method. What (if anything) am I doing wrong and how do I correctly convert a string with special characters to/from its correct JSON representation? Perhaps I

How do I convert a string to and from JSON with escaped/special characters using DBXJSON?

跟風遠走 提交于 2019-12-02 19:27:01
I'm having trouble converting a string with escaped characters to and from a TJsonString. (I'm using Delphi XE 2, Update 4, Hotfix 1). NOTE: I am familiar with the SuperObject , but my requirements are to use the DBXJSON unit. It looks like the TJSONString is not correctly escaped when returning the JSON representation via the ToString() method. What (if anything) am I doing wrong and how do I correctly convert a string with special characters to/from its correct JSON representation? Perhaps I missed something, but none of the following Q&As seemed to address this directly: Delphi decode json