You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Vanshul.Chawla" <Va...@target.com> on 2017/06/07 14:09:24 UTC

Camel xmljson XML to Json

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 [] will not have one occurrence but will treat it as {})

Is there a way to do this with xmljson or do we need to code it explicitly.

Vanshul