toJSON method

String toJSON()

Serializes the settings to a JSON string.

Implementation

String toJSON() {
  StringBuffer buffer = StringBuffer();

  buffer.write('{');
  toOptionsJSON(buffer);
  buffer.write('}');

  return buffer.toString();
}