It is possible to implement it this way but it's very inflexible. Big -1 from me. Info shouldn't be conveyed in JSON keys. It should be conveyed in JSON values. I'd much prefer something like this:
{ "clientId": "453de743207a0232a339a23e5d64b289", "timestamp": "8377194421", "data": { "security": { "type": "<name of self-defence check impl java class>", passed: true } } } ``` No strong opinion on the name of the "security" and "type" keys. Could be "idm" and "class" or whatever... But I would much prefer this structure. Daniel PassosDavid MartinPaolo BuenoWojciech Trocki What do you folks think? |