In places where the size/number of dependencies really matters we also embedded 
(via Bnds conditionalpackage, 
https://bnd.bndtools.org/instructions/conditionalpackage.html) the minimum 
implementation provided by Felix Utils: 
https://github.com/apache/felix-dev/tree/master/utils/src/main/java/org/apache/felix/utils/json

Both parser and serialiser are very lean and are don’t have any external 
dependencies.

For all other cases javax.json is the way to go.
Konrad
 
> On 3. Jun 2022, at 11:50, Bertrand Delacretaz <[email protected]> wrote:
> 
> Le ven. 3 juin 2022 à 11:46, Julian Reschke <[email protected]> a écrit :
>> ...I believe the answer is javax.json.
> 
> Yes, many "newer" Sling modules are using that.
> 
> I think the homegrown JSON code is here for historical reasons.
> 
> If someone wants to change that that's fine, but backwards
> compatibility has to be preserved.
> 
> The strong modularity of Sling means it's not necessarily a problem
> (even if not optimal) to use different techniques in different
> modules. To be evaluated on a case-by-case basis, IMO.
> 
> -Bertrand

Reply via email to