I have a HashMap object which will be stored in NoSQL database. When it has entries, it would look like:
"input":{"key1": "value1", "key2": "value2" }
If this "input" does not exist in the db, I want "input":{} to be shown in response instead of "input":null. What is the best way to do that?
Thanks