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 StackOverflow led me to the issue.

I may be on an old JsonSlurper however.. dunno.

Owen Rubel
[email protected]


On Sun, Jul 10, 2022 at 2:36 PM Owen Rubel <[email protected]> wrote:

> 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
> [email protected]
>
>
> On Sun, Jul 10, 2022 at 7:20 AM Paul King <[email protected]> wrote:
>
>> 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 <[email protected]> wrote:
>> >
>> > Hello Groovy people,
>> >
>> > I have code using org.apache.groovy:groovy:4.0.1 and it builds without
>> any problems.
>> >
>> > But now I want to use the JSONSlurper and it looks like there is a new
>> JSONParser also. That however requires groovy-all from googling. The
>> problem is that there seem to be not groovy-all for version 4.0.1. Maven
>> completely fails when I add "-all" to "groovy" in my poms. It will not
>> download the groovy-all file. I deleted ~/.m2/repository and built again
>> and it downloaded all but groovy-all.
>> >
>> > The JSON stuff is not available in the "groovy" artifact.
>> >
>> > So my question really is, I want to use Groovys JSON features, what do
>> I need to do to accomplish that ?
>> >
>> > I've completely failed top find any Groovy 4.0 related page other than
>> the release notes. Since there are big diffs between versions there must be
>> some page for each version I assume ?
>> >
>> > I found this: https://groovy-lang.org/processing-json.html but it is
>> not version specific and provides no information on how to get access to it.
>> >
>> > I'm frustrated. Something seemingly simple turned out to be the
>> opposite!
>> >
>> > Any help is appreciated.
>> >
>> > Thanks,
>> > Tommy Svensson
>> >
>> >
>> >
>>
>

Reply via email to