fixed json formating for metadata, and data table creation in read.datatable