Hi,
I need to pass below to POST request
{
"organization": "test",
"context": {
"description": "vikram-test"
},
"severity": "high",
}
I'm doing as below
Map<String, Object> jsonAsMap = new HashMap<>();
jsonAsMap.put("organization", "test");
jsonAsMap.put("severity", "high");
jsonAsMap.put("context", new HashMap<String,String>() {{
put("description", "vikram-test");
}});
Is this correct way of passing JSON object ?
In my case context is not setting description value properly instead setting value as null
Please clarify
Thanks,
Vikram