Fixed up the JSON query.