scala.scalajs.js

JSON

object JSON extends Object

The JSON object contains methods for converting values to JavaScript Object Notation (JSON) and for converting JSON to values.

MDN

Linear Supertypes
Object, Any, AnyRef, scala.Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JSON
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: scala.Any): scala.Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def +(that: String): String

    Definition Classes
    Any
  4. final def ==(arg0: scala.Any): scala.Boolean

    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): scala.Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: scala.Any): scala.Boolean

    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. def hasOwnProperty(v: String): Boolean

    Every object descended from Object inherits the hasOwnProperty method.

    Every object descended from Object inherits the hasOwnProperty method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.

    MDN

    Definition Classes
    Object
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: scala.Boolean

    Definition Classes
    Any
  14. def isPrototypeOf(v: Object): Boolean

    The isPrototypeOf mehtod allows you to check whether or not an object exists within another object's prototype chain.

    The isPrototypeOf mehtod allows you to check whether or not an object exists within another object's prototype chain.

    MDN

    Definition Classes
    Object
  15. final def ne(arg0: AnyRef): scala.Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. def parse(text: String, reviver: Function2[Any, Any, Any] = ???): Dynamic

    Parse a string as JSON, optionally transforming the value produced by parsing.

    Parse a string as JSON, optionally transforming the value produced by parsing.

    text

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

    reviver

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

    MDN

  19. def propertyIsEnumerable(v: String): Boolean

    Every object has a propertyIsEnumerable method.

    Every object has a propertyIsEnumerable method. This method can determine whether the specified property in an object can be enumerated by a for...in loop, with the exception of properties inherited through the prototype chain. If the object does not have the specified property, this method returns false.

    MDN

    Definition Classes
    Object
  20. def stringify(value: Any, replacer: Array[Any], space: Any): String

  21. def stringify(value: Any, replacer: Array[Any]): String

  22. def stringify(value: Any, replacer: Function2[String, Any, Any] = ???, space: Any = ???): String

    Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.

    Convert a value to JSON, 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

    If a function, transforms values and properties encountered while stringifying; if an array, specifies the set of properties included in objects in the final string.

    space

    Causes the resulting string to be pretty-printed.

    MDN

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toLocaleString(): String

    Definition Classes
    Object
  25. def toString(): java.lang.String

    Definition Classes
    AnyRef → Any
  26. def unary_!(): Boolean

    Definition Classes
    Any
  27. def valueOf(): Any

    Definition Classes
    Object
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from scala.Any

Ungrouped