Read the Json or CSV string into the DataTable at runtime, and then you can convert the content into a matching structure.