ralfstx / minimal-json

A fast and small JSON parser and writer for Java
MIT License
732 stars 186 forks source link

Example for JsonParser/JsonHandler #106

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hello developers,

May I ask if you could add examples using JsonParser/JsonHandler to wiki? It would help a lot. Especially use case of 2 type parameters in JsonHandler<?, ?> is not clear in docs.

Thank you,

bernardosulzbach commented 5 years ago

Thank you for the suggestion, @hkcorac. I'm quite busy lately but hopefully this will eventually have some examples.

thjaeckle commented 5 years ago

Hi. In Eclipse Ditto we have an example of an JsonHandler implementation: https://github.com/eclipse/ditto/blob/master/json/src/main/java/org/eclipse/ditto/json/DittoJsonHandler.java https://github.com/eclipse/ditto/blob/master/json/src/main/java/org/eclipse/ditto/json/DefaultDittoJsonHandler.java

ghost commented 5 years ago

@bernardosulzbach @thjaeckle

Thank you very much. From reading the Eclipse source code, I was able to understand JsonHandler. If I could come up with some example I will send it to you. (But I'm sorry I'm not sure...)