I need to define one nested JSON object which stores in use case 1 a key value with an integer (amount of something) and in use case 2 a key value with a string (UUID).
The goal is to analyse the data in later procedures.
I know decided to put the number into quotes and get away with implicit conversion. Which has been described here: Can JSON numbers be quoted?
Example-1:
"kpiValue": {
"type": "Driver",
"value": 16 // => amount of something
}
Example-2
"kpiValue": {
"type": "Driver",
"value": "ident" // => UUID is handled as string
},
Any thoughts on this?