Hi All,

I am using json:config("custom") options for converting xml to json.

current implementation:

xml response:

<options>
<name></name>
</options>

converted json response: (using json:transform to json)

{"options":
{"name":[""] }
}

Also i have used array-element-names on "name"


New Requirement:

When i have empty element value in xml  like <name></name> json response
should be

{"name":[  ] } only empty array i should not get empty string like above.
Is there any options for removing empty string value ("") in json response?
Can anybody help me out in this.

Thanks,
Manoj.
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to