Modified ncdump to output data in json format