Reference

Class

RiGrammar

Name

toJSON

Description Return a formatted version of this grammar.
Example
rg = new RiGrammar(rules);
json = rg.toJSON();
Parameters
Stringbeautify or not (optional, default=false)
Returns
Stringthe grammar as a json string
Syntax
rg.toJSON();
Platform Java / JavaScript