* XML to JSON CDATA translation is NOT stripped
* Example, assume XML: `<s><![CDATA[ z > x & x < y ]]></s>`
* Previous bevavior:
* JSON: {"s":" z > x & x < y "}
* New behavior:
* JSON: `{"s":"<![CDATA[ z > x & x < y ]]>"}`
* To keep old behavior, set `JSON_CDATA_STRIP` in clixon_custom.h
This commit is contained in:
parent
7976c11f11
commit
81da71ffd7
5 changed files with 61 additions and 16 deletions
|
|
@ -117,3 +117,14 @@
|
|||
* As defined in draft-wwlh-netconf-list-pagination-00 using Yang metadata value [RFC7952]
|
||||
*/
|
||||
#undef LIST_PAGINATION_REMAINING
|
||||
|
||||
/*! XML CDATA encoding in payload is stripped when translating to JSON
|
||||
* Example: XML: "<s><![CDATA[ z > x & x < y ]]></s>" is translated to
|
||||
* JSON: {"s":" z > x & x < y "}
|
||||
* If not set:
|
||||
* JSON: {"s":"<![CDATA[ z > x & x < y ]]>"}`
|
||||
* Clixon stripped CDATA in 5.3 and earlier versions.
|
||||
* To keep this backward-compatible enable this option
|
||||
* Consider removing this option after 5.4
|
||||
*/
|
||||
#undef JSON_CDATA_STRIP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue