JSONCFormat (FreeMarker 2.3.35 API)
Description: declaration: package: freemarker.core, class: JSONCFormat

Package freemarker.core

# Class JSONCFormat

java.lang.Object
freemarker.core.CFormat
freemarker.core.AbstractJSONLikeFormat
freemarker.core.JSONCFormat

public final class JSONCFormat extends AbstractJSONLikeFormat
"JSON" `CFormat`; to be used when generating JSON (and not JavaScript), except, in most cases `JavaScriptOrJSONCFormat` is recommended over this.

Experimental class! This class is too new, and might will change over time. Therefore, for now most methods are not exposed outside FreeMarker. The class itself and some members are exposed as they are needed for configuring FreeMarker.

Since:
  2.3.32
See Also:
  `JavaScriptCFormat`, `JavaScriptOrJSONCFormat`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static JSONCFormat`
  `INSTANCE`
  `static String`
  `NAME`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getName()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### NAME

    public static final String NAME
    See Also:
      Constant Field Values

  - ### INSTANCE

    public static final JSONCFormat INSTANCE

- ## Method Details

  - ### getName

    public String getName()
    Specified by:
      `getName` in class `CFormat`