change from json to query string