fixed printing of json data