You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Raul Kripalani (Created) (JIRA)" <ji...@apache.org> on 2012/01/23 15:16:41 UTC
[jira] [Created] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Provide a Data Format to convert XML <-> JSON directly (json-lib)
-----------------------------------------------------------------
Key: CAMEL-4930
URL: https://issues.apache.org/jira/browse/CAMEL-4930
Project: Camel
Issue Type: New Feature
Affects Versions: 2.9.0
Reporter: Raul Kripalani
Assignee: Raul Kripalani
Fix For: 2.10.0
Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Patch Info: Patch Available
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Attachment: camel-xmljson-osgi-tests.diff
There goes {{camel-xmljson-osgi-tests.diff}}, a patch containing a test to validate the OSGi-readiness of camel-xmljson. Including some modifications to the camel-xmljson feature too to add missing libraries.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff, camel-xmljson-osgi-tests.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Raul Kripalani (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235620#comment-13235620 ]
Raul Kripalani commented on CAMEL-4930:
---------------------------------------
Work being carried out here: https://github.com/raulk/camel-xmljson. Once finalised, I will submit it to Apache for inclusion in trunk.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Raul Kripalani (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247301#comment-13247301 ]
Raul Kripalani commented on CAMEL-4930:
---------------------------------------
The last release is less than 1.5 years old (December 2012), not 2+.
json-lib is quite a stable and mature project from my experience.
It clearly isn't in heavy development at the moment, but ohloh.net shows higher adoption rate of json-lib (16 users) vs. Jackson (14 users) and Gson (7 users) - the other JSON-processing libraries supported in Camel (leaving XStream aside - which is a whole different story).
So I'm inclined to think that Camel should offer json-lib support simply because users use it, and it solves a different use case than the rest of the libraries currently present in the project.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Raul Kripalani (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245302#comment-13245302 ]
Raul Kripalani commented on CAMEL-4930:
---------------------------------------
Order of patch application:
# camel-xmljson-adjacent.diff
# camel-xmljson.diff
Please let me know if something needs to be fixed or tuned ;)
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-adjacent.diff, camel-xmljson.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247358#comment-13247358 ]
Claus Ibsen commented on CAMEL-4930:
------------------------------------
When you have initialization logic etc. Then use the doStart/doStop methods from ServiceSupport. Alternative if you cannot extend ServiceSupport, them implement Service and use the start|stop methods. I committed a fix to trunk.
This is the proper way with Camel to have start/stop logic executed. As the previous logic have issues with concurrency when multiple threads invoke the marshal / unmarshal method.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287925#comment-13287925 ]
Claus Ibsen commented on CAMEL-4930:
------------------------------------
Raul any update on the last pieces?
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Attachment: camel-xmljson-core-springdsl.diff
Attaching {{camel-xmljson-core.diff}} which enriches the Spring DSL to support the <xmljson /> element with a number of options inside the <dataFormats> block.
Will soon attach a patch to enrich the Java DSL with an .xmljson() method too.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-adjacent.diff, camel-xmljson-core-springdsl.diff, camel-xmljson.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Raul Kripalani (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13244257#comment-13244257 ]
Raul Kripalani commented on CAMEL-4930:
---------------------------------------
Created https://issues.apache.org/jira/browse/SMX4-1121 on the SMX4 JIRA to request a bundle for json-lib, since the library is not OSGi-ready out of the box.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Attachment: camel-xmljson-full.diff
Attaching one single diff file with all the modifications needed on top of r1308983 to create the camel-xmljson data format.
It can now be applied using the trunk directory as the base.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247352#comment-13247352 ]
Claus Ibsen commented on CAMEL-4930:
------------------------------------
Patch in trunk. We need documentation and OSGi unit tests in camel-itest-osgi
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Attachment: (was: camel-xmljson-core-springdsl.diff)
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247288#comment-13247288 ]
Claus Ibsen commented on CAMEL-4930:
------------------------------------
Thanks Raul.
I am trying your big patch.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-4930.
--------------------------------
Resolution: Fixed
Thanks for the osgi patch, applied to trunk.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff, camel-xmljson-osgi-tests.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Work started] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Raul Kripalani (Work started) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-4930 started by Raul Kripalani.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247292#comment-13247292 ]
Claus Ibsen commented on CAMEL-4930:
------------------------------------
Is the XML json lib project active at all? The last release is 2+ years old.
I am just a bit worried that adding new components which uses dead projects.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Comment: was deleted
(was: Order of patch application:
# camel-xmljson-adjacent.diff
# camel-xmljson.diff
Please let me know if something needs to be fixed or tuned ;))
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Raul Kripalani (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13245278#comment-13245278 ]
Raul Kripalani commented on CAMEL-4930:
---------------------------------------
[SMX4-1121|https://issues.apache.org/jira/browse/SMX4-1121] has been resolved, so json-lib and ezmorph are now OSGified within the ServiceMix project.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Attachment: camel-xmljson.diff
Attaching a patch which contains the {{camel-xmljson}} data format. Filename: camel-xmljson.diff.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Raul Kripalani (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280313#comment-13280313 ]
Raul Kripalani commented on CAMEL-4930:
---------------------------------------
Added docs to wiki: https://cwiki.apache.org/confluence/display/CAMEL/XmlJson.
Updated https://cwiki.apache.org/confluence/display/CAMEL/Data+Format+List and https://cwiki.apache.org/confluence/display/CAMEL/JSON accordingly.
I'll work on the OSGi unit test tomorrow.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Attachment: (was: camel-xmljson.diff)
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Attachment: (was: camel-xmljson-adjacent.diff)
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Comment: was deleted
(was: Attaching a patch which contains the {{camel-xmljson}} data format. Filename: camel-xmljson.diff.)
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Work stopped] (CAMEL-4930) Provide a Data Format to convert
XML <-> JSON directly (json-lib)
Posted by "Raul Kripalani (Work stopped) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-4930 stopped by Raul Kripalani.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-full.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Attachment: camel-xmljson-adjacent.diff
Attaching diff which applies changes to the Camel parent POM and adds an Apache Karaf feature called "camel-xmljson".
Currently using snapshot versions for jsonlib and ezmorph bundles, as SMX4-1121 was only closed yesterday. We'll have to wait for the next SMX4 bundles release to drop the SNAPSHOT.
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
> Attachments: camel-xmljson-adjacent.diff, camel-xmljson.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4930) Provide a Data Format to convert XML
<-> JSON directly (json-lib)
Posted by "Raul Kripalani (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raul Kripalani updated CAMEL-4930:
----------------------------------
Comment: was deleted
(was: Attaching {{camel-xmljson-core.diff}} which enriches the Spring DSL to support the <xmljson /> element with a number of options inside the <dataFormats> block.
Will soon attach a patch to enrich the Java DSL with an .xmljson() method too.)
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
> Key: CAMEL-4930
> URL: https://issues.apache.org/jira/browse/CAMEL-4930
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 2.9.0
> Reporter: Raul Kripalani
> Assignee: Raul Kripalani
> Fix For: 2.10.0
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib library to perform the conversion directly: http://json-lib.sourceforge.net/. This library is Apache-licensed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira