Adding new queries using JSON responses