Technical Blog Post
Abstract
While Doing Queries Using Map Services, Use JSON Instead of PJSON
Body
Hey Everyone,
I just wanted to make you all aware of a particular configuration that can possibly not work as you expect it to. If you are using PJSON as your output format when querying records from ArcGIS Server, it is possible that data returned from the query is not formatted correctly.
PJSON format is known as "prettified" JSON, and it formats the spaces, tabs and carriage returns to improve human readability. Characters such as "\\" might be picked up as escape characters, and as a result - may concatenate data unexpectedly, or do other strange behaviors
To stop this from happening, you should use the JSON format. To make this change, it's simple. Please see two example's I've provided below on how you can make this change:
An example of a URL with PJSON:
http://ArcGISforServerURL:port/arcgis/rest/services/Water_Network/Featu…;pjson
An example of a URL with JSON:
http://ArcGISforServerURL:port/arcgis/rest/services/Water_Network/Featu…;json
Thanks everyone for your attention to this.
UID
ibm11111593