Class JSON.Literal

java.lang.Object
org.eclipse.jetty.util.ajax.JSON.Literal
All Implemented Interfaces:
JSON.Generator
Enclosing class:
JSON

public static class JSON.Literal extends Object implements JSON.Generator

A Literal JSON generator.

A utility instance of JSON.Generator that holds a pre-generated string on JSON text.

  • Constructor Details

    • Literal

      public Literal(String json)
      Constructs a literal JSON instance.
      Parameters:
      json - a literal JSON string
  • Method Details