2015-06-22 22:42 GMT+02:00 Sergey Beryozkin :
> I've updated that test locally:
>
> provider.setDropRootElement(true);
> provider.setArrayKeys(Arrays.asList("parameterList"));
> provider.setOutDropElements(Arrays.asList("parameterList"));
> provider.setDropElementsInXmlStream(false);
>
> and it pro
I've updated that test locally:
provider.setDropRootElement(true);
provider.setArrayKeys(Arrays.asList("parameterList"));
provider.setOutDropElements(Arrays.asList("parameterList"));
provider.setDropElementsInXmlStream(false);
and it produces
[{"name":"param"}]
or
[{"name":"param"},{"name":"par
2015-06-22 16:36 GMT+02:00 Sergey Beryozkin :
> Hi
>
> Have a look at
> https://github.com/apache/cxf/blob/master/rt/rs/extensions/providers/src/test/java/org/apache/cxf/jaxrs/provider/json/JSONProviderTest.java#L215
>
> Cheers, Sergey
Thanks
I've seen that this test checks if JSON provider can
And the next 2 tests too...
Some of it should help...
Sergey
On 22/06/15 15:36, Sergey Beryozkin wrote:
Hi
Have a look at
https://github.com/apache/cxf/blob/master/rt/rs/extensions/providers/src/test/java/org/apache/cxf/jaxrs/provider/json/JSONProviderTest.java#L215
Cheers, Sergey
On 22/06/15
Hi
Have a look at
https://github.com/apache/cxf/blob/master/rt/rs/extensions/providers/src/test/java/org/apache/cxf/jaxrs/provider/json/JSONProviderTest.java#L215
Cheers, Sergey
On 22/06/15 15:30, Jose María Zaragoza wrote:
2015-06-22 13:48 GMT+02:00 Sergey Beryozkin :
When you use a collectio
2015-06-22 13:48 GMT+02:00 Sergey Beryozkin :
> When you use a collection, JSONProvider wraps it internally to support a
> common path where a JAXB bean is provided and serialized, so
> 'dropRootElement' drops that internally added root.
> Create a basic CardTypes bean wrapping a collection, use we
Adding a 'dropElementsInXmlStream':false might be enough without having
to introduce a dedicated wrapper
Sergey
On 22/06/15 12:48, Sergey Beryozkin wrote:
When you use a collection, JSONProvider wraps it internally to support a
common path where a JAXB bean is provided and serialized, so
'dropR
When you use a collection, JSONProvider wraps it internally to support a
common path where a JAXB bean is provided and serialized, so
'dropRootElement' drops that internally added root.
Create a basic CardTypes bean wrapping a collection, use
webClient.post(), and these properties:
Let m
2015-06-22 13:11 GMT+02:00 Sergey Beryozkin :
> Hi
>
> CXF JettisonProvider is only capable of supporting JAXB-generated events, it
> does not deal directly with JSONObjects.
> What is the problem you are seeing with JAXB ? Can not have a sequence
> starting immediately from "[" ? That should be po
Hi
CXF JettisonProvider is only capable of supporting JAXB-generated
events, it does not deal directly with JSONObjects.
What is the problem you are seeing with JAXB ? Can not have a sequence
starting immediately from "[" ? That should be possible to configure
with JettisonProvider with proper
Hello:
I would like to POST a JSON array to a REST service
Something like
[
{
"name" : "x",
"value" : "11"
},
{
"name" : "yy",
"value" : "22"
}
]
I'm using CXF 2.7.8 + Jettison 1.3.5
I usually implement it by JAXB classes , but I don't get achieving it
If
11 matches
Mail list logo