tests
query to json