You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by endian675 <mi...@griggs.org.uk> on 2015/09/16 14:25:19 UTC
Using Jackson as JSON processor?
Is it possible to use Jackson as the JSON processor rather than
net.sf.json-lib? If so, how can I configure that?
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Using-Jackson-as-JSON-processor-tp1402.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Using Jackson as JSON processor?
Posted by Yakov Zhdanov <yz...@apache.org>.
please use this as starting point -
https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute
--Yakov
2015-09-16 17:29 GMT+03:00 endian675 <mi...@griggs.org.uk>:
> I'd be more than happy to contribute. Is there an existing example of this
> kind of pattern in the Ignite code base? I am still getting to grips with
> Java (not to mention Git, Ignite, et. al...) so having an example to guide
> me is likely to yield a better result.
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Using-Jackson-as-JSON-processor-tp1402p1406.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
Re: Using Jackson as JSON processor?
Posted by endian675 <mi...@griggs.org.uk>.
I'd be more than happy to contribute. Is there an existing example of this
kind of pattern in the Ignite code base? I am still getting to grips with
Java (not to mention Git, Ignite, et. al...) so having an example to guide
me is likely to yield a better result.
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Using-Jackson-as-JSON-processor-tp1402p1406.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Using Jackson as JSON processor?
Posted by Yakov Zhdanov <yz...@apache.org>.
It seems this is not possible now. However, I suppose that we can easily
refactor GridJettyRestHandler to allow custom JSON serializers - just
introduce pluggable interface and set current impl as default. Can you help
us with this and contribute to Ignite?
--Yakov
2015-09-16 16:03 GMT+03:00 endian675 <mi...@griggs.org.uk>:
> What I am actually trying to achieve is to achieve the @JsonAnySetter
> functionality from Jackson within Ignite, either by using Jackson directly
> or some other method.
>
> From some searching it seems that it might be possible to use a custom
> PropertySetStrategy inside json-lib in order to get the same behaviour, but
> I don't know if I will have access to the JsonConfig object in order to set
> that custom strategy.
>
> This custom strategy ignores missing properties (might be out of date now
> anyway) but I think the concept is similar to achieving @JsonAnySetter,
> even
> if the implementation is different.
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Using-Jackson-as-JSON-processor-tp1402p1403.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
Re: Using Jackson as JSON processor?
Posted by endian675 <mi...@griggs.org.uk>.
What I am actually trying to achieve is to achieve the @JsonAnySetter
functionality from Jackson within Ignite, either by using Jackson directly
or some other method.
>From some searching it seems that it might be possible to use a custom
PropertySetStrategy inside json-lib in order to get the same behaviour, but
I don't know if I will have access to the JsonConfig object in order to set
that custom strategy.
This custom strategy ignores missing properties (might be out of date now
anyway) but I think the concept is similar to achieving @JsonAnySetter, even
if the implementation is different.
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Using-Jackson-as-JSON-processor-tp1402p1403.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.