Command json2xml


Name

json2xml converts a JSON file to an xml file using the JXML schema.

Synopsis

json2xml[ serialization options ] [json file]


Options


Supports the standard [ serialization options ]


Examples


Example
echo ' { "foo" : [ true , null , 1.23 , { "bar" : "spam" } ] } ' | json2xml

Result
<object xmlns="http://www.xmlsh.org/jxml">
   <member name="foo">
	  <array>
		 <boolean>true</boolean>
		 <null/>
		 <number>1.23</number>
		 <object>
			<member name="bar">
			   <string>spam</string>
			</member>
		 </object>
	  </array>
   </member>
</object>

Return Value

Returns 0 if the conversion is successful

See xml2json
Commands
CategoryCommands

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki