Inital JSON query and response decode