
This directory contains the Ruby implementation of scjson. The gem provides a command line tool and library functions to convert between .scxml and .scjson files.
gem install scjson
You can also install from a local checkout:
cd ruby && gem build scjson.gemspec && gem install scjson-*.gem
scjson json path/to/machine.scxml
scjson xml path/to/machine.scjson
scjson validate path/to/dir -r
require 'scjson'
document = Scjson::Types::ScxmlProps.new
json = document.to_json
round_trip = Scjson::Types::ScxmlProps.from_json(json)
All source code in this directory is released under the BSD 1-Clause license. See LICENSE and LEGAL.md for details.