code: public void call(String name, @DelegatesTo(StreamingJsonDelegate.class) Closure c) throws IOException {
          writer.write(JsonOutput.OPEN_BRACE);
          writer.write(generator.toJson(name));
          writer.write(JsonOutput.COLON);
          call(c);
          writer.write(JsonOutput.CLOSE_BRACE);
      }
docs: A name and a closure passed to a JSON builder will create a key with a JSON object
  <p>
  Example:
  <pre class="groovyTestCase">
  new StringWriter().with { w {@code ->}
  def json = new groovy.json.StreamingJsonBuilder(w)
  json.person {
  name "Tim"
  age 39
  }
  
  assert w.toString() == '{"person":{"name":"Tim","age":39}}'
  }
  </pre>
  
  @param name The key for the JSON object
  @param c a closure whose method call statements represent key / values of a JSON object