started on json file format
added output