Was not parsing the geometry query field correctly in the case where it was a simple coordinate array and not a JSON geometry object. This was breaking ArcGIS for Desktop.