Adding JSON output

Adding Json Outout and change line 48