I'm using Super Object as a JSON parser. I ran into a problem while working with a third-party API. The API returns JSON with spaces in the element names. However, Super Object does not work with spaces. I observed behavior where it treats the space as the end quote, thus ignoring anything after the space.
{ "state abbreviation":"KY", "state":"Kentucky" }
I believe the key is that state is also the name of another element. When I try to read state abbreviation it returns the value of state instead.
How can I get around this problem?
This MCVE indicates that SuperObject is working correctly with spaces in the name of the element, I used the latest version of the source code and Delphi XE7:
Output from program:
It seems that you are not using the latest version of the source code, or that the defect is located elsewhere in your program...