I have a json dataset that varies widely. it can have a field that is either an object or a list. how do I map these into a data model property if when I'm ingesting the data it can be either or. I can have a list of if else statements to check if a property is a list or object but for 10 fields that would grow rather big and make the code ugly.
field:{property1: 3, property2:4}
or
field:{[property1: 3, property2:4], [property1: 5, property2:6]}
>(yourJson)`.
– Hassan Monjezi Nov 25 '20 at 21:21