Closed mibamur closed 10 years ago
Hi,
It came about because I needed an xml to json transformer(mainly for ATOM feeds,) at the mo there's no other plans to implement your suggestions above, however of course it could be done.
The code basically recursively walks the parse tree output from petitparser and transforms the elements into json, ending up with the whole thing.
You could set breakpoints in the unit test suite and walk down the code to see how this works, the petitparser api docs are good also.
Steve
On 24 December 2013 10:16, Michael notifications@github.com wrote:
Hello!
1) have you plan to write json2xml, csv2json library using petitparser 2) what about add xml2json console command like xml2json [--option] -i file.xml -o file.json
PS I realy want to help, but I just begin learn PetitParser - there are no live-example how work with it or use it.
— Reply to this email directly or view it on GitHubhttps://github.com/shamblett/xml2json/issues/1 .
"Talk is cheap. Show me the code."
Steve Hamblett
thanks
I`m going try to do it
Hello!
1) have you plan to write json2xml, csv2json library using petitparser 2) what about add xml2json console command like
xml2json [--option] -i file.xml -o file.json
PS I realy want to help, but I just begin learn PetitParser - there are no live-example how work with it or use it.