Repository navigation
Replies: 2 comments 2 replies
|
There is no direct way but you can achieve it in 2 ways.
|
0 replies
|
@johtso please refer list of arrays with ignoreAttributes property. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm currently trying to achieve the same behaviour as another xml parser
That is for attributes on object nodes to be preserved under a special key, but if a node just contains text, the attribute is ignored
Is this possible?
e.g.
{ "foo": { "@attributes": { "bar": "hello" }, "name": "baz", "thing": { "@attributes": { "keep": "this" }, "fruit": "plum" } } }All reactions