I don't really know any real usecase for leniant json parsing.   

I think it's a bit of an artifact of back in the day when you wrote some JSON 
by hand and knew that you could take some short cuts.  

Everytime I have ever used some lenient JSON, not too long after I try to reuse 
it somewhere else and get an error!   So I don't think it gains us anything.  


Eric

On 2026/04/27 17:16:38 Christos Malliaridis wrote:
> Hello everyone,
> 
> During the development of the new UI I noticed that the JSON parsing in our
> API is configured to be lenient. This means that it allows for example
> numbers being provided for fields that are normally strings.
> 
> During some tests I found out that this behavior throws errors for some
> specific cases. I have documented those in SOLR-18191 [1].
> 
> I would like to change the request parsing for JSON input to be strict and
> not lenient. Renato Haebrli has already created a draft PR [2] where this
> is being addressed.
> 
> Since this may be considered a breaking change, I would like to gather more
> opinions and consensus before changing the behavior in 10.x. If it is
> considered a problematic change, we could work out a migration plan.
> 
> What do you think about the proposed change? And do you think consumers
> actually are affected by this?
> 
> Best,
> Christos
> 
> [1] SOLR-18191 https://issues.apache.org/jira/browse/SOLR-18191
> [2] https://github.com/apache/solr/pull/4329
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to