Json to query url