unit tests for json_data_handler
command reads data in JSON format, added more checks, tests, to json_data