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?