Valentyn Kolesnikov
Valentyn Kolesnikov
```json { "example": { "#text": "A control character (backspace): \b" } } ``` may be converted to xml ```xml A control character (backspace): \b ``` ```
```xml HelloCordova A sample Apache Cordova application that responds to the deviceready event. Apache Cordova Team ``` may be converted to json ```json { "widget": { "-id": "org.test.test", "-version": "1.0.0",...
`]]>` Can be converted to json ```json { "job": { "#cdata-section": "" }, "#omit-xml-declaration": "yes" } ```
```xml textTextText text1 text2 ``` may be converted to ```json { "tree": { "node1": { "#text": " \n textTextText \n ", "subnode1": " text1 ", "subnode2": " text2 " }...
It may be converted to this JSON ```json { "root": { "#text": "\\\"\n", "#comment": "  ", "#comment1": "  " }, "#omit-xml-declaration": "yes" } ```
It may be converted to this JSON ```json { "alice": { "bob": [ "charlie", { "#item": { "a": "test" } }, "david" ] }, "#omit-xml-declaration": "yes" } ```
[Underscore-java](https://github.com/javadev/underscore-java) has a static method U.jsonToXml(jsonstring).
It may be other json. ```json { "x": { "#text": "a ", "b": "c", "#text1": " d" }, "#omit-xml-declaration": "yes" } ```
https://github.com/stleary/JSON-java/pull/694 was merged. Issue may be closed.
```json { "groceries": { "-class": "foo", "item": [ { "-class": "bar", "-self-closing": "true" }, { "-class": "foobar", "-self-closing": "true" }, { "-class": "barfoo", "-self-closing": "true" } ] }, "#omit-xml-declaration": "yes"...