Updated json_query for select query fix