This documentation is for WSO2 Enterprise Service Bus version 4.8.0 . View documentation for the latest release.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejavascript
{"array":[1,2]}

XML (RJsonStreamBuilder):

Code Block
languagehtml/xml
<jsonObject>
   <array>1</array>
   <array>2</array>
</jsonObject>

XML (JsonBuilder):

Code Block
languagehtml/xml
<jsonObject>
   <?xml-multiple array?>
   <array>1</array>
   <array>2</array>
</jsonObject>

...

Code Block
languagejavascript
{"array":[]}

XML (RJsonStreamBuilder):

Code Block
languagehtml/xml
<jsonObject></jsonObject>

XML (JsonBuilder):

Code Block
languagehtml/xml
<jsonObject>
   <?xml-multiple array?>
</jsonObject>

...

Code Block
languagejavascript
[1,2]

XML (RJsonStreamBuilder):

Code Block
languagehtml/xml
<jsonArray>
   <jsonElement>1</jsonElement>
   <jsonElement>2</jsonElement>
</jsonArray>

XML (JsonBuilder):

Code Block
languagehtml/xml
<jsonArray>
   <?xml-multiple jsonElement?>
   <jsonElement>1</jsonElement>
   <jsonElement>2</jsonElement>
</jsonArray>

...

Code Block
languagejavascript
[1, []]

XML (RJsonStreamBuilder):

Code Block
languagehtml/xml
<jsonArray>
   <jsonElement>1</jsonElement>
   <jsonElement>
       <jsonArray></jsonArray>
   </jsonElement>
</jsonArray>

XML (JsonBuilder):

Code Block
languagehtml/xml
<jsonArray>
   <?xml-multiple jsonElement?>
   <jsonElement>1</jsonElement>
   <jsonElement>
       <jsonArray>
           <?xml-multiple jsonElement?>
       </jsonArray>
   </jsonElement>
</jsonArray>

...