extract the details of data schema and convert to json