query api3 with json results; fix json empty result;