Packages

o

scala.util.parsing.json

JSONFormat

object JSONFormat

This object defines functions that are used when converting JSONType values into String representations. Mostly this is concerned with proper quoting of strings.

Annotations
@deprecated
Deprecated

(Since version 1.0.6) Use The Scala Library Index to find alternatives: https://index.scala-lang.org/

Source
Parser.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JSONFormat
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type ValueFormatter = (Any) ⇒ String

    This type defines a function that can be used to format values into JSON format.

Value Members

  1. val defaultFormatter: ValueFormatter

    The default formatter used by the library.

    The default formatter used by the library. You can provide your own with the toString calls on JSONObject and JSONArray instances.

  2. def quoteString(s: String): String

    This function can be used to properly quote Strings for JSON output.