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

2021-02-11 Thread ski n
> > 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 > > removed from the

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 that it

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
"ErrorMsg": "OK", "Value": {"InstallKey": [{ "CustomerProductId": "5957152", "KeyPoolName": "Standard_EMEA", "ProductId": "37293",

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
Twitter: @oscerd2 Github: oscerd On Wednesday, November 16, 2016 11:15 AM, bharadwaj <bharadwaj2...@gmail.com> 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.Json

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
issues 1. I want to avoid ?xml version=1.0 encoding=UTF-8? tag in my output. 2. Namespace prefix is not coming for helloWorld tags Any help? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-XmlJson-Question-tp5770021p5770597.html Sent from the Camel

RE: Camel XmlJson Question

2015-08-12 Thread srinit
1. I want to avoid ?xml version=1.0 encoding=UTF-8? tag in my output. 2. Namespace prefix is not coming for helloWorld tags Any help? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-XmlJson-Question-tp5770021p5770592.html Sent from the Camel - Users

RE: Camel XmlJson Question

2015-07-31 Thread srinit
information is wrongly taken. I tried to see, whether json library have something to customize 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

RE: Camel XmlJson Question

2015-07-31 Thread Vanshul . Chawla
] Sent: Friday, July 31, 2015 3:18 PM To: users@camel.apache.org Subject: RE: Camel XmlJson Question 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

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 sree.tallapa...@gmail.com wrote: I am trying to xml == json using following code @Override public void xml2json(String xml

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 Camel

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-28 Thread Vanshul . Chawla
@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 I need to convert a Xml SOAP message

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

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

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

2015-01-28 Thread Raul Kripalani
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 issue tracker is [2]. Make

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

2015-01-13 Thread Vinny
in their code. Do you think 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

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

2014-11-25 Thread Claus Ibsen
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 - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/camel-xmljson-add-signs-to-the-json-output-how

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

2014-11-18 Thread salemi
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-18 Thread Claus Ibsen
: 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 - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http

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-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-13 Thread salemi
- 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-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-13 Thread Claus Ibsen
removeNamespacePrefixes=true skipNamespaces=true trimSpaces=true/ 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-tp5759013p5759063

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

2014-11-12 Thread salemi
: 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 add @ signs to the json output. how to remove the @ signs

2014-11-12 Thread Claus Ibsen
: { @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

Re: Camel-XmlJson dataformat and ASLV2

2014-09-25 Thread Christian Müller
/christian-mueller/11/551/642 On Tue, Sep 23, 2014 at 9:03 PM, Charlie Mordant cmorda...@gmail.com 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

Re: Camel-XmlJson dataformat and ASLV2

2014-09-24 Thread Charlie Mordant
. 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 regards, -- Charlie Mordant Full OSGI/EE stack

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 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 cmorda...@gmail.com 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 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 marshal

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 @. Your JSON serializer

Re: camel-xmljson

2013-06-04 Thread Raul Kripalani
+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, Program Manager | Apache Camel Committer http://about.me

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.

Re: camel-xmljson

2013-06-03 Thread Raul Kripalani
:02 PM, Surendra surendrapam...@hotmail.com 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
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, Program

camel-xmljson

2013-06-02 Thread Surendra
[test.MyQueue]] route3 INFO Got {aps:[this is a test message],key3:value3,key2:value2,key1:value1} -- View this message in context: http://camel.465427.n5.nabble.com/camel-xmljson-tp5733645.html Sent from the Camel - Users mailing list archive at Nabble.com.