fixing query -> JSON.parse