Switch schema query to JSON.