Wiki source for ModuleJson


Show raw source

======JSON Module======

**//NOTE: The JSON module is currently in PRE-ALPHA stage. For testing only. Do not use in production environements !//**

n.

=====Download=====
JSON extension module is on sourceforge in the json_ext package under xmlsh.
Dowload the latest binary from [[http://sourceforge.net/projects/xmlsh/files/ xmlsh files]]
Choose the "json_ext" folder and download the latest release.


====Dependancies====
The current ""json"" extension (0.1) requires xmlsh version 1.1.7 or greater.


====Installing====
Like all extension modules you must install the files under bin/ into a directory under $XMODPATH
Suggested is to use $XMODPATH/json and it should contain only the files from the bin/ directory (module.xml, json_ext.jar)


=====Importing=====

Import the JSON extension in xmlsh with an "import module" statement.
The module can be found using the XMODPATH variable or explicitly by specifying the module.xml file

Import the module using the "import module" command

Assuming you put the JSON files in the directory /usr/local/xmlsh/ext/json

%%
XMODPATH=/usr/local/xmlsh/ext
import module j=json
%%


=====Running=====
Your now ready to run JSON commands from within xmlsh.

The following commands are supported

||[[JSONJxon jxon]]||Runs the JXON processor||
||[[JSONJcmp jcmp]]||semantically compares 2 json files||


----
[[Modules Extension Modules]]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki