Try Apache Johnzon. 
It is really tiny (< 100k) and already used in CXF and TomEE as well for 
example.
It's based on the JSON-P specification, so it's even optional if you run Wicket 
on a EE7 server.

LieGrue,
strub


> Am 23.11.2016 um 20:24 schrieb Emond Papegaaij <emond.papega...@gmail.com>:
> 
> Hi,
> 
> Does this mean we can no longer include these files in Wicket 6 and 7?
> If so, that would mean a serious API break, or we need to duplicate
> the entire API in new classes. The classes are part of the public API
> of AbstractDefaultAjaxBehavior and the classes are publicly available.
> 
> Looking at the usage of the classes in Wicket, I don't see why we need
> a heavy weight library such as Jackson. Also, Jackson has a history of
> breaking its API even in patch releases. It has proven one of the most
> unreliable libraries in our applications over the past few years.
> 
> Wicket only uses the JSON classes in 3 places:
> AbstractDefaultAjaxBehavior, AtmosphereParameters and ModalWindow. I
> think we should either find a lightweight substitute or write
> something ourselves from scratch. As far as I can see, we only use the
> classes to render Maps and arrays to JSON. We do not seem to be using
> them for parsing.
> 
> Best regards,
> Emond
> 
> On Wed, Nov 23, 2016 at 7:44 PM, Mark Struberg
> <strub...@yahoo.de.invalid> wrote:
>> This benchmark is also not really correct.
>> For Johnzon it creates a new JsonProvider for each and every invocation. 
>> This heavily slows down the performance.
>> 
>> LieGrue,
>> strub
>> 
>>> Am 23.11.2016 um 18:37 schrieb Martin Grigorov <mgrigo...@apache.org>:
>>> 
>>> https://github.com/fabienrenaud/java-json-benchmark
>> 

Reply via email to