Script to convert table to json.