REST - JSON request
Here's a sample JSON request: Sample1 comes with an attribute Type and it's empty. Is it possible if the attribute is empty. Can this be removed like the output on sample2. I tried to use the remove empty content and set it true which I usually did on XML. However, it seems like this does not apply do JSON request message. I am not sure if there's a way around this.
Sample 1:
"Transfer" : {
"Service" : "Mix",
"Instruct" : {
"Account" : {
"Number" : "xx8172121",
"Type" : "",
"Prod": "NEW"
}
}
}
Sample 2:
"Transfer" : {
"Service" : "Mix",
"Instrucy" : {
"Account" : {
"Number" : "xx8172121",
"Prod": "NEW"
}
}
}