SvenEwald / xmlbeam

Java XML library. A really cool one. Obviously.
https://xmlbeam.org
Apache License 2.0
73 stars 12 forks source link

Support for JSON? (/o\ yeah, I know) #28

Open odrotbohm opened 9 years ago

odrotbohm commented 9 years ago

I just created an example and request for enhancement in Spring Framework to integrate XMLBeam with Spring MVC as it's uber useful in case you'd like to implement more lenient data binding from XML (as you might want to be able to adapt to slight document structure changes without changing consuming code.

Thinking through this I wondered whether there's an opportunity to provide the data projecting approach to JSON documents, too, using JSONPath instead of XPath as JSON for better or for worse has become the lingua france of integration APIs. I know this might be a stretch but didn't actually imagine a better place to at least ask, as I think it would be well received.

SvenEwald commented 9 years ago

Really like the Spring MVC integration, cannot wait to play around with it ;-). I decided not to add JSON support to XMLBeam. But I'm already working on a separate project (JSONBeam). This because the focus of XMLBeam is flexibility all over performance. (While you get it a lot faster by using Saxon). The focus of JSONBeam is to provide a non recursive indexing JSON parser with data projection just like in XMLBeam. Will make it public "when it's done".

odrotbohm commented 9 years ago

That's great news. I'd almost expected something like this and think it's totally fine. There's probably quite a bit of code and API that can be reused. Anyway, looking forward to it!

odrotbohm commented 8 years ago

This topic just came up again after I promoted XMLBeam to work with XML (over stupid JAXB binding). Think it would be a game changer actually. Would it make the port more likely if could invest some time in helping?

whatthefrog commented 4 years ago

https://github.com/SvenEwald/jsonbeam