Class NJSUtilities.JSON

java.lang.Object
org.bzdev.util.JSUtilities.JSON
org.bzdev.obnaming.NJSUtilities.JSON
Enclosing class:
NJSUtilities

public static class NJSUtilities.JSON extends JSUtilities.JSON
Methods for parsing and generating JSON. All the public methods of this class are static. An extended syntax is used for parsing (but not for writing):
  • Comments consist of the sequence '//', not within a string, and contain all characters up to the end of a line.
  • For a JSON object in a key/value pair, the quoting the key is optional when the key is syntactically a Java identifier.
These extensions are useful when a file containing JSON-formated values is used as an input to a program. The object returned by the parser can be used to configure a named-object factory (using the syntax described in the documentation for NamedObjectFactory.