The lenient parsing thing is cool till you try to take the same json structure 
and use it in something else and it blows up.

I’d love to see a comparison of the performance differences, and assuming no 
diff or minimal, then move to Jackson!

> On Aug 5, 2024, at 1:03 PM, Gus Heck <gus.h...@gmail.com> wrote:
> 
> IIUC there were supposed to be memory advantages to noggit. I have not seen
> this quantified, and the relevance of those advantages over current jackson
> (vs libs available in the early 2000's) seems like a valid thing to
> investigate.
> 
> Unfortunately, we have areas where we support json with duplicate keys,
> which while technically legal JSON is unexpected by most default parser
> usages and an anathema for mapping the json into an object in an object
> oriented language.
> 
> We also support extra trailing commas in lists which violates the spec IIUC.
> 
> It's hard to justify a change until
> 
>   1. there is a demonstrated performance advantage, or
>   2. those API's have been redesigned, or
>   3. Someone takes the time to figure out how to make Jackson play nice
>   with the oddities we support, and writes reusable utilities to ensure
>   consistency so that it's transparent to users
> 
> 
> 
> On Mon, Aug 5, 2024 at 11:53 AM David Smiley <dsmi...@apache.org> wrote:
> 
>> We have a couple JSON Parsing libraries -- "Noggit" (internal to Solr)
>> and "Jackson".  Noggit is more lenient in parsing.  I suppose Solr
>> should use Noggit for parsing JSON coming into it, but AFAIK Solr only
>> returns/emits valid JSON; yes?  For parsing JSON that we assume is
>> compliant (e.g. from Solr), should we prefer Jackson or Noggit?  Are
>> there performance advantages?
>> 
>> ~ David Smiley
>> Apache Lucene/Solr Search Developer
>> http://www.linkedin.com/in/davidwsmiley
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@solr.apache.org
>> For additional commands, e-mail: dev-h...@solr.apache.org
>> 
>> 
> 
> -- 
> http://www.needhamsoftware.com (work)
> https://a.co/d/b2sZLD9 (my fantasy fiction book)

_______________________
Eric Pugh | Founder | OpenSource Connections, LLC | 434.466.1467 | 
http://www.opensourceconnections.com <http://www.opensourceconnections.com/> | 
My Free/Busy <http://tinyurl.com/eric-cal>  
Co-Author: Apache Solr Enterprise Search Server, 3rd Ed 
<https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw>
    
This e-mail and all contents, including attachments, is considered to be 
Company Confidential unless explicitly stated otherwise, regardless of whether 
attachments are marked as such.

Reply via email to