AnsweredAssumed Answered

Geoprocessing Service Output in Single Quotes, Not Double

Question asked by JALevine on Apr 4, 2017
Latest reply on Apr 4, 2017 by JALevine


I have a geoprocessing service that returns a JSON object as a result.  When viewing the HTML response through the service's rest endpoint, the result "value" object has its attributes in double quotes (columns, rows, bbox, xmin, ymin, etc...):

html response

However, when viewing the json response, the result "value" object is in single quotes:

json response


Is there a way to ensure that my geoprocessing service returns all attributes with double quotes in the json response?


In my code, I set the response like this:


output = {"bbox": bbox, "elevations": elevation_list, "rows": rows, "columns": columns}


#Set Output
arcpy.SetParameter(2, output)