In a JSON response from a server, can the same property have a different type based on the value of another property, or is this an antipattern that should be avoided?
Example:
[
{
"value": 1.2,
"valueType": "Numeric"
},
{
"value": false,
"valueType": "Boolean"
}
]