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)
boolean[Only in Java]: (optional) prettify the output or not, default=false
Returns
Stringthe grammar as a json string
Syntax
rg.toJSON();
Platform Java / JavaScript