tests,json: Fix and improve t-json
* tests/json/t-json.c (run_test): Terminate argv array correctly. (run_test): Note and handle empty response.