Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread Paul King
On Mon, Jul 11, 2022 at 3:00 AM Guillaume Laforge wrote: > > Which bug ticket are we talking about? > (The ordering issue in lists) I am not sure there was ever any issue raised in the Groovy's Jira. Groovy's JsonSlurper is a port from project Boon. Here is the issue and fix from project Boon: h

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread Paul King
That "bug" is relevant only to Java 1.6 which I am sure most folks have moved on from. We aren't likely to release any new Groovy versions supporting that version of Java, so there isn't really anything to fix at this point. Cheers, Paul. On Mon, Jul 11, 2022 at 7:48 AM Owen Rubel wrote: > > Pau

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread Owen Rubel
Oh and it may be a nesting issue (nested ArrayList, etc) that is having issue with order(can't remember). Still, should not be doing that. Tested against a parse using 'org.json.JsonObject' and got the correct result (rather than with JsonSlurper). Thats why I switched off it. And that StackOverf

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread Owen Rubel
Paul, If you are interested in fixing the bug, here they are talking about it in StackOverflow. https://stackoverflow.com/questions/33018236/how-to-maintain-jsons-order-in-groovys-jsonslurper I stopped submitting issues as a result of past run-ins in the community but have run into this issue my

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread Owen Rubel
Also a good benchmark for ALL JSON libs are here: https://github.com/fabienrenaud/java-json-benchmark Plus while JsonSlurper merely is a parser, other JSON libs do alot more and still are extremely fast (per the benchmark as you see). Owen Rubel oru...@gmail.com On Sun, Jul 10, 2022 at 7:20 AM

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread Guillaume Laforge
Which bug ticket are we talking about? (The ordering issue in lists) Le dim. 10 juil. 2022, 18:49, MG a écrit : > Hi Tommy, > > I agree: We have often found that using well established Java libraries > together with the power of the Groovy language works well & makes great > sense (e.g. Ebean OR

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread MG
Hi Tommy, I agree: We have often found that using well established Java libraries together with the power of the Groovy language works well & makes great sense (e.g. Ebean ORM & Vaadin web-GUI in our case). Groovy's integrated support (for e.g. XML/JSON) is often very dynamic in nature, someth

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread Tommy Svensson
Hi Paul, Thanks, but after the warning that JSONSlurper can loose order in lists, a known bug, I decided to go with Jackson Jr, which also allows me to parse JSON into a Map structure. But since I'm coding entirely in Groovy using Groovys JSON support would make sense, but the pointed out bug s

Re: Using Groovy 4.0.1 and want to use Groovys JsonSlurper or whatever it might be called in version 4.

2022-07-10 Thread Paul King
Hi Tommy, I wrote a little blog post that might have some of the information you were missing: https://blogs.apache.org/groovy/entry/parsing-json-with-groovy Perhaps some more of that info belongs in the official documentation. Cheers, Paul. On Fri, Jul 8, 2022 at 9:10 PM Tommy Svensson wrote