Skip to main content

Hello All,

 

I have a use case where i want to remove empty objects with the key

For instance:

 

This is my input:

{"Value":[

{

"name":null,

"subject":null

},

{

"name":null,

"subject":null

},

{

"name":null,

"subject":null

}

]

}

 

After applying skipNullOn ="Everywhere" I get this output:

"Value":

[

{

},

{

},

{

}

]

 

But I don't even want "Value" key to get printed, when the all the objects are empty within the Value, I want "Value" to be skipped from the response.

 

Can someone please pitch in any ideas?

2 Antworten
  1. 6. Aug. 2019, 13:50
    - BODY IS TOO LONG (>10000) -
0/9000