code: public static void main(String args[]) {
          // Here's an example of how to use JSONEmitter. This produces the following JSON:
          //     {"doc": {
          //         "fields": [
          //             {"Title": "Zen and the Art of Motorcycle Maintenance"},
          //             {"Amazon-Link": "http://www.amazon.com/"},
          //             {"Author": "Robert Pirsig"},
          //             {"Publisher": "Harper Perennial Modern Classics"}
          //         ]
          //     }}
          // Note: Not necessarily correct Doradus syntax!
          JSONEmitter json = new JSONEmitter();
          json.startDocument()
              .startGroup("doc")
              .startArray("fields")
              .addObject("Title", "Zen and the Art of Motorcycle Maintenance")
              .addObject("Amazon-Link", "http://www.amazon.com/")
              .addObject("Author", "Robert\tPirsig")
              .addObject("Publisher", "Harper Perennial Modern Classics\r\n")
              .endArray()     // fields
              .endGroup()    // doc
              .endDocument();
          String text = json.toString();
          System.out.println(text);
      }
docs: /// Main (for testing/demo)