Is it normal practice to change the type of a property from an array to a single item when there is only one occurrence?
[
{
"sport": [
"Football",
"Hockey"
]
},
{
"sport": "Football"
}
]
And how would you convert this data into programming objects when you don't know if it's an array or an object?
Relates to: How to handle both a single item and an array for the same property using JSON.net