You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by sireesh <ki...@gmail.com> on 2013/04/16 13:28:32 UTC
Re: JSONProvider unable to unmarshal json containing list of
elements
Hi Sergey,
Apologies for the long delay in getting about this. I couldn't work on this
because of change in priorities at work.
I managed to work on the custom JSONProvider as per your suggestion.
I would like to know if I need to add any note/disclaimer if I've made
use/copied snippets of the existing code from CXF snapshot.
I'm attaching the custom JSONProvider I've written. Can you please let me
know if this is fine with you and I can use this in enterpise project
which is not opensource.
Thanks,
Kiran
On 24 January 2013 09:48, Sergey Beryozkin-5 [via CXF] <
ml-node+s547215n5722117h2@n5.nabble.com> wrote:
> Hi
> On 24/01/13 00:05, sireesh wrote:
> > Sergey, I couldn't find method named createStreamReader in JSONProvider
> to be
> > overriden.
> > I could only find createReader methods, and they seem to use
> > JSONUtils.createStreamReader.
> > Can you please elaborate on the workaround you have mentioned.
> >
> Sorry, it is indeed JSONProvider.createReader, so the idea was to extend
> it and use some of the code from the latest JSONUtils.createStreamReader
>
> Cheers, Sergey
> > Thanks,
> > Sireesh
> >
> >
> >
> > --
> > View this message in context:
> http://cxf.547215.n5.nabble.com/JSONProvider-unable-to-unmarshal-json-containing-list-of-elements-tp5715651p5722099.html
>
> > Sent from the cxf-user mailing list archive at Nabble.com.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://cxf.547215.n5.nabble.com/JSONProvider-unable-to-unmarshal-json-containing-list-of-elements-tp5715651p5722117.html
> To unsubscribe from JSONProvider unable to unmarshal json containing list
> of elements, click here<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715651&code=a2lyYW5zaXJlZXNoQGdtYWlsLmNvbXw1NzE1NjUxfC0xMjgwNTcyMzU3>
> .
> NAML<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
GrcJsonProvider.java (8K) <http://cxf.547215.n5.nabble.com/attachment/5726362/0/GrcJsonProvider.java>
--
View this message in context: http://cxf.547215.n5.nabble.com/JSONProvider-unable-to-unmarshal-json-containing-list-of-elements-tp5715651p5726362.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: JSONProvider unable to unmarshal json containing list of elements
Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
On 16/04/13 12:28, sireesh wrote:
> Hi Sergey,
>
> Apologies for the long delay in getting about this. I couldn't work on this
> because of change in priorities at work.
> I managed to work on the custom JSONProvider as per your suggestion.
>
> I would like to know if I need to add any note/disclaimer if I've made
> use/copied snippets of the existing code from CXF snapshot.
> I'm attaching the custom JSONProvider I've written. Can you please let me
> know if this is fine with you and I can use this in enterpise project
> which is not opensource.
AFAIK, you will need to have a reference to Apache added to the notes,
but I'm not 100% sure if anything else needs to be done in case of some
code snippets copied as well.
Dan should be back some time next week, he will know, others are welcome
to comment too.
Thanks for trying to make it right,
Sergey
>
> Thanks,
> Kiran
>
>
> On 24 January 2013 09:48, Sergey Beryozkin-5 [via CXF]<
> ml-node+s547215n5722117h2@n5.nabble.com> wrote:
>
>> Hi
>> On 24/01/13 00:05, sireesh wrote:
>>> Sergey, I couldn't find method named createStreamReader in JSONProvider
>> to be
>>> overriden.
>>> I could only find createReader methods, and they seem to use
>>> JSONUtils.createStreamReader.
>>> Can you please elaborate on the workaround you have mentioned.
>>>
>> Sorry, it is indeed JSONProvider.createReader, so the idea was to extend
>> it and use some of the code from the latest JSONUtils.createStreamReader
>>
>> Cheers, Sergey
>>> Thanks,
>>> Sireesh
>>>
>>>
>>>
>>> --
>>> View this message in context:
>> http://cxf.547215.n5.nabble.com/JSONProvider-unable-to-unmarshal-json-containing-list-of-elements-tp5715651p5722099.html
>>
>>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://cxf.547215.n5.nabble.com/JSONProvider-unable-to-unmarshal-json-containing-list-of-elements-tp5715651p5722117.html
>> To unsubscribe from JSONProvider unable to unmarshal json containing list
>> of elements, click here<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715651&code=a2lyYW5zaXJlZXNoQGdtYWlsLmNvbXw1NzE1NjUxfC0xMjgwNTcyMzU3>
>> .
>> NAML<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
> GrcJsonProvider.java (8K)<http://cxf.547215.n5.nabble.com/attachment/5726362/0/GrcJsonProvider.java>
>
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/JSONProvider-unable-to-unmarshal-json-containing-list-of-elements-tp5715651p5726362.html
> Sent from the cxf-user mailing list archive at Nabble.com.