updated placesQuery to suit JSON format