Packages

object JSON extends Object with JSON

JSON Singleton Object

Annotations
@deprecated @native() @JSGlobal("JSON")
Deprecated

(Since version 0.9.0) Use scala.scalajs.js.JSON instead

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JSON
  2. JSON
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toLocaleString(): String
    Definition Classes
    Object
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. def valueOf(): Any
    Definition Classes
    Object
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def parse(text: String, reviver: Function = js.native): Any

    The JSON.parse() method parses a JSON string, constructing the JavaScript value or object described by the string.

    The JSON.parse() method parses a JSON string, constructing the JavaScript value or object described by the string. An optional reviver function can be provided to perform a transformation on the resulting object before it is returned.

    text

    The string to parse as JSON. See the JSON object for a description of JSON syntax.

    reviver

    Optional: If a function, prescribes how the value originally produced by parsing is transformed, before being returned.

    returns

    The Object corresponding to the given JSON text.

    Definition Classes
    JSON
    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.0) Use scala.scalajs.js.JSON instead

  2. def stringify(value: Any, replacer: Function = js.native, space: |[String, Int] = js.native): String

    The JSON.stringify() method converts a JavaScript value to a JSON string, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.

    The JSON.stringify() method converts a JavaScript value to a JSON string, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.

    value

    The value to convert to a JSON string.

    replacer

    Optional: A function that alters the behavior of the stringification process, or an array of String and Number objects that serve as a whitelist for selecting/filtering the properties of the value object to be included in the JSON string. If this value is null or not provided, all properties of the object are included in the resulting JSON string.

    space

    Optional: A String or Number object that's used to insert white space into the output JSON string for readability purposes. If this is a Number, it indicates the number of space characters to use as white space; this number is capped at 10 if it's larger than that. Values less than 1 indicate that no space should be used. If this is a String, the string (or the first 10 characters of the string, if it's longer than that) is used as white space. If this parameter is not provided (or is null), no white space is used.

    returns

    A JSON string representing the given value.

    Definition Classes
    JSON
    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.0) Use scala.scalajs.js.JSON instead

Inherited from JSON

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped