Re: Replacement for camel-xmljson for schema-less xml -> json

2021-02-11 Thread ski n
ide. > > Directly there is no solution ootb. > > Il giorno gio 11 feb 2021 alle ore 11:17 Keith Herbert < > kherb...@redhat.com> > ha scritto: > > > Hi all, > > > > camel-xmljson is deprecated and even it's documentation has recently been > > remove

Re: Replacement for camel-xmljson for schema-less xml -> json

2021-02-11 Thread Andrea Cosentino
Hello, The available alternative is using camel-jaxb in combinatio with camel-jackson or any of the json components we provide. Directly there is no solution ootb. Il giorno gio 11 feb 2021 alle ore 11:17 Keith Herbert ha scritto: > Hi all, > > camel-xmljson is deprecated and

Replacement for camel-xmljson for schema-less xml -> json

2021-02-11 Thread Keith Herbert
Hi all, camel-xmljson is deprecated and even it's documentation has recently been removed from the Camel website. Is there another DataFormatter that can perform xml->json without an xsd file or annotated pojos? The issue https://issues.apache.org/jira/browse/CAMEL-12995 says tha

Camel xmljson XML to Json

2017-06-07 Thread Vanshul . Chawla
Hello, I am using Camel xmljson marshal where my Input xml has some Arrays(defined as per xsd with occurrence 0-10) but in xml, I am getting occurrence as 0 or 1. So xmljson is treating it as a JsonObject instead of JsonArray and resulting json will not get it as an array with occurrence 1.(ie

Re: Camel xmlJson not working properly?

2017-03-10 Thread Preben.Asmussen
It depends on your needs. I tend to flatten the json structure in the same way that xml2json does in the example above. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-xmlJson-not-working-properly-tp5795194p5795232.html Sent from the Camel - Users mailing list

Re: Camel xmlJson not working properly?

2017-03-10 Thread Ranabroto
"5957152", "KeyPoolName": "Standard_EMEA", "ProductId": "37293", "Value": "ABCD-EFGH-CC-89" }]} } -- View this message in context: http://camel.465427.n5.nabble.com/Camel-xmlJson-not-working-properly-tp5795194p5795229.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel xmlJson not working properly?

2017-03-09 Thread Preben.Asmussen
}] } The problem is that xmltojson is not able from the xml to determine if it should generate an json object or an array thats why you get 2 different outputs. As i recall we ended up with an pojo afterburner on the generated json converting the jsonobject to an array if needed. Since then I stumbled on this thread http://stackoverflow.com/questions/34053941/xml-to-json-single-valued-array-handling?rq=1 Maybe that might be of help. Havn't had the time to try it out myself. /Preben -- View this message in context: http://camel.465427.n5.nabble.com/Camel-xmlJson-not-working-properly-tp5795194p5795203.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel xmlJson not working properly?

2017-03-09 Thread Ranabroto
"0", "ErrorMsg": "OK", "Value": {"InstallKey": [{ "CustomerProductId": "5957152", "KeyPoolName": "Standard_EMEA", "ProductId": "

Re: camel-xmljson unmarshalling issue Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.json.JsonConfig

2016-11-20 Thread AOladipupo
Hi, Can you share some more details about your use case? For example, is it a maven project? Are you using blueprint or camel-spring-dm? etc Regards, Dipo -- View this message in context: http://camel.465427.n5.nabble.com/camel-xmljson-unmarshalling-issue-Caused-by-java-lang

Re: camel-xmljson unmarhalling issue Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.json.JsonConfig

2016-11-16 Thread Andrea Cosentino
o.com Twitter: @oscerd2 Github: oscerd On Wednesday, November 16, 2016 11:15 AM, bharadwaj wrote: Hi, Camel-xmljson is not working and throwing error runtime when enable camel tracing. Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.json.JsonConfig Jboss fuse

camel-xmljson unmarhalling issue Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.json.JsonConfig

2016-11-16 Thread bharadwaj
Hi, Camel-xmljson is not working and throwing error runtime when enable camel tracing. Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.sf.json.JsonConfig Jboss fuse 6.1.0 feature added - camel-xmljson java version - 1.7.0_111 -- View this message in context

camel-xmljson

2016-06-23 Thread RudyVonWald
"force-array" setting of some kind or alternate approach where the results of the transformation will result in a single element array for a chosen element? i.e. {"Country":{"OU":"CA","DocumentType":[{"Code":"15","UploadReportCount":"30"}]}} I need the output to be consistent for the DocumentType level. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/camel-xmljson-tp5784353.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Camel XmlJson Question

2015-08-12 Thread srinit
Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-XmlJson-Question-tp5770021p5770592.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel XmlJson Question

2015-08-12 Thread srinit
lp? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-XmlJson-Question-tp5770021p5770597.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel XmlJson Question

2015-07-31 Thread Raul Kripalani
places instead of digging into camel-xmljson directly. [1] https://camel.apache.org/xmljson.html#XmlJson-BasicUsagewithJavaDSL [2] https://camel.apache.org/xmljson.html#XmlJson-BasicusagewithSpringorBlueprintDSL [3] https://github.com/apache/camel/tree/master/components/camel-xmljson/src/test/java

RE: Camel XmlJson Question

2015-07-31 Thread Vanshul . Chawla
some elements etc, you need to look at extended parameters. Thanks and Regards, Vanshul Chawla -Original Message- From: srinit [mailto:sree.tallapa...@gmail.com] Sent: Friday, July 31, 2015 3:18 PM To: users@camel.apache.org Subject: RE: Camel XmlJson Question Hi Raul, I went through

RE: Camel XmlJson Question

2015-07-31 Thread srinit
Hi Raul, I went through that page and unable get how I can use that for my case. I don't see any good example for xmljson under Examples section. - Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-XmlJson-Question-tp5770021p5770150.html Sent from the

RE: Camel XmlJson Question

2015-07-31 Thread Raul Kripalani
Hi, Have you tried using the camel-xmljson data format instead of custom code? Take a look at the link provided above. Raúl. On 31 Jul 2015 08:18, "srinit" wrote: > I am trying to xml <==> json using following code > > @Override > public void xml2json(Stri

RE: Camel XmlJson Question

2015-07-31 Thread srinit
ze the parsing and found nothing. any help? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-XmlJson-Question-tp5770021p5770099.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Camel XmlJson Question

2015-07-28 Thread Vanshul . Chawla
Tuesday, July 28, 2015 8:22 PM To: users@camel.apache.org Subject: Camel XmlJson Question Hi Folks, I am very new to Camel library and getting confused whether I am in right place for my requirement or not? Here is my requirement, I need conversion from xml to json and viceversa in java project. Basically

Camel XmlJson Question

2015-07-28 Thread srinit
with namespaces and other informations from SOAP message. I feel Camel XmlJson can help to do this. But neither I did find any simple example to understand xmlJson module nor good documentation to understand functionality of Camel xmlJson. Can some one point me any resources to understand the

Camel xmljson - Streaming

2015-03-23 Thread contactreji
Hi I have an issue with the large json and xml file size while doing a json->xml unmarshalling with camel-xmljson dataformat. Is there a way I can increase the performance as its killing the system. The incoming file contains about 15 mb of json text data. Is streaming an option? Regards R

Re: Camel XML-JSON marshalling : camel-xmljson dataFormat

2015-03-23 Thread Willem Jiang
t;:{"Epc":"0x9E","Edt":"0x00"}},{"CollectProperty":{"Epc":"0x9F","Edt":"0x0A808182888A9D9E9FC4C5"}},{"CollectProperty":{"Epc":"0xC4","Edt":"0xFFFF"}},{"Co

Camel XML-JSON marshalling : camel-xmljson dataFormat

2015-03-22 Thread contactreji
Hey Is there any way to configure this component to explicitely specify the array elements in resultant json string from an xml in xmljson mashalling process.Can you carefully notice the placement of square brackets on the output and the expected result. Attaching my camel route towards the end o

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2015-01-28 Thread Raul Kripalani
e able to cycle back from JSON to XML accurately. As Claus said, we could add a feature in our camel-xmljson data format to remove the @ signs, but that would be post-processing and not very performant. Please feel free to submit a pull request + JIRA if you'd like this functionality. The i

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2015-01-13 Thread Vinny
@ sign for the attributes and # for the text elements. > >> They need those "annotations" to be able to covert a json properly back > to > >> xml. The @ and # signs are hard coded in their code. > >> > >> Do you think I should asked to change the

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-25 Thread Claus Ibsen
es and # for the text elements. >> They need those "annotations" to be able to covert a json properly back to >> xml. The @ and # signs are hard coded in their code. >> >> Do you think I should asked to change the code? >> >> Ali >> >> >>

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-18 Thread Claus Ibsen
- > Alireza Salemi > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-xmljson-add-signs-to-the-json-output-how-to-remove-the-signs-tp5759013p5759220.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen -

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-18 Thread salemi
k I should asked to change the code? Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/camel-xmljson-add-signs-to-the-json-output-how-to-remove-the-signs-tp5759013p5759220.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-14 Thread Claus Ibsen
Hi See http://camel.apache.org/source.html Though if you are familiar with github you can also find it there. Which IMHO is much easier https://github.com/apache/camel And the component is here https://github.com/apache/camel/tree/master/components/camel-xmljson On Fri, Nov 14, 2014 at 6:12

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-14 Thread salemi
where can I find the source code for this? - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/camel-xmljson-add-signs-to-the-json-output-how-to-remove-the-signs-tp5759013p5759147.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-13 Thread Claus Ibsen
/> > > Do you know how turn off the @ sign for xml attributes? > > Thanks, > Ali > > > > > - > Alireza Salemi > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-xmljson-add-signs-to-the-json-output-how-to-remove-the-signs-

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-13 Thread salemi
.nabble.com/camel-xmljson-add-signs-to-the-json-output-how-to-remove-the-signs-tp5759013p5759063.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-12 Thread Claus Ibsen
uot;: "hPa" > }, > "wind": { > "speed": { > "@value": "2.66", > "@name": "Light breeze" > }, > "direction": { > "@valu

camel xmljson add @ signs to the json output. how to remove the @ signs

2014-11-12 Thread salemi
uot;@code": "NW", "@name": "Northwest" } }, "clouds": { "@value": "0", "@name": "clear sky" }, "visibility": [], "precipitation": { "@mode": "no" }, "weather": { "@number": "800", "@value": "Sky is Clear", "@icon": "01n" }, "lastupdate": { "@value": "2014-11-12T23:06:51" } } - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/camel-xmljson-add-signs-to-the-json-output-how-to-remove-the-signs-tp5759013.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-XmlJson dataformat and ASLV2

2014-09-25 Thread Christian Müller
he Camel PMC Member | Apache Camel committer > > Apache Incubator PMC Member > > > > https://www.linkedin.com/pub/christian-mueller/11/551/642 > > > > On Tue, Sep 23, 2014 at 9:03 PM, Charlie Mordant > > wrote: > > > > > Hi Camel riders! > &

Re: Camel-XmlJson dataformat and ASLV2

2014-09-24 Thread Charlie Mordant
t; > I just checked the licenses of a project I own. > > This project as a dependency to camel-xmljson dataformat, which itself > has > > a dependency to XOM. > > The problem is that XOM as a LGPL License that is not compatible ASLv2. > > > > Any info on this?

Re: Camel-XmlJson dataformat and ASLV2

2014-09-23 Thread Christian Müller
://www.linkedin.com/pub/christian-mueller/11/551/642 On Tue, Sep 23, 2014 at 9:03 PM, Charlie Mordant wrote: > Hi Camel riders! > > I just checked the licenses of a project I own. > This project as a dependency to camel-xmljson dataformat, which itself has > a dependency to XOM. &

Camel-XmlJson dataformat and ASLV2

2014-09-23 Thread Charlie Mordant
Hi Camel riders! I just checked the licenses of a project I own. This project as a dependency to camel-xmljson dataformat, which itself has a dependency to XOM. The problem is that XOM as a LGPL License that is not compatible ASLv2. Any info on this? Any XOM ASL compliant alternative? Best

Re: camel-xmljson convert POJO to XML

2014-01-13 Thread Henryk Konsek
Hi Roman, > but the main thing I have to do is to set vaiable *enabled* as > an attribute of *username* and I have no idea how. LibJson [1] (which is used by camel-xmljson [2] under the hood) will convert JSON pair into XML attribute if the name of the attribute starts with @. You

camel-xmljson convert POJO to XML

2014-01-13 Thread jamalissimo
Hello guys, I need to cenvert POJO or JSON to XML file. I was sort of able to generate XML with Jackson library, but I would like to use camel-xmljson and I don't know how exactly. I read the documentation at http://camel.apache.org/json.html and I know how to set it up and how to marsh

RE: camel-xmljson

2013-06-04 Thread Surendra
Thanks Raul. Saved me ton of time. Appreciate your help. Date: Tue, 4 Jun 2013 03:06:33 -0700 From: ml-node+s465427n5733786...@n5.nabble.com To: surendrapam...@hotmail.com Subject: Re: camel-xmljson Hi Surendra, My tests show that the underlying json-lib is very sensitive to

Re: camel-xmljson

2013-06-04 Thread Raul Kripalani
> Date: Mon, 3 Jun 2013 08:53:18 -0700 > From: ml-node+s465427n5733722...@n5.nabble.com > To: surendrapam...@hotmail.com > Subject: Re: camel-xmljson > > > > I'll take a look at it later. > > > Regards, > > > *Raúl Kripalani* > > Enterprise

RE: camel-xmljson

2013-06-03 Thread Surendra
Thank you. Date: Mon, 3 Jun 2013 08:53:18 -0700 From: ml-node+s465427n5733722...@n5.nabble.com To: surendrapam...@hotmail.com Subject: Re: camel-xmljson I'll take a look at it later. Regards, *Raúl Kripalani* Enterprise Architect, Open Source Integration specialist, Pr

Re: camel-xmljson

2013-06-03 Thread Raul Kripalani
at 4:02 PM, Surendra wrote: > Did anybody came across this issue? any clues? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-xmljson-tp5733645p5733712.html > Sent from the Camel - Users mailing list archive at Nabble.com. >

Re: camel-xmljson

2013-06-03 Thread Surendra
Did anybody came across this issue? any clues? -- View this message in context: http://camel.465427.n5.nabble.com/camel-xmljson-tp5733645p5733712.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-xmljson

2013-06-02 Thread Surendra
]] XMLSerializer INFO Using default type string [#1 - JmsConsumer[test.MyQueue]] route3 INFO Got {"aps":["this is a test message"],"key3":"value3","key2":"value2","key1":"value1"