Packages

  • package root

    JSON (JavaScript Object Notation) is a lightweight data-interchange format.

    JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages,

    JSON has only types of string, number, boolean, object, array, and null. This library includes additional types such as date, int, long, double, counter, binary, UUID, ObjectId (as in BSON), etc.

    It is very easy to parse a JSON object:

    val doc =
      json"""
      {
        "store": {
          "book": [
            {
              "category": "reference",
              "author": "Nigel Rees",
              "title": "Sayings of the Century",
              "price": 8.95
            },
            {
              "category": "fiction",
              "author": "Evelyn Waugh",
              "title": "Sword of Honour",
              "price": 12.99
            },
            {
              "category": "fiction",
              "author": "Herman Melville",
              "title": "Moby Dick",
              "isbn": "0-553-21311-3",
              "price": 8.99
            },
            {
              "category": "fiction",
              "author": "J. R. R. Tolkien",
              "title": "The Lord of the Rings",
              "isbn": "0-395-19395-8",
              "price": 22.99
            }
          ],
          "bicycle": {
            "color": "red",
            "price": 19.95
          }
        }
      }
      """

    The interpolator json parse a string to JsObject. To parse an array, use the interpolator jsan to JsArray. It is also okay to embed variable references directly in processed string literals.

    val x = 1
    json"""
      {
        "x": $x
      }
    """

    If the string is not a JSON object but any other valid JSON expression, one may use parseJson method to convert the string to a JsValue.

    "1".parseJson

    The json interpolator can only be applied to string literals. If you want to parse a string variable, the parseJson method can always be employed. If you know the string contains a JSON object, you may also use the method parseJsObject.

    val s = """{"x":1}"""
    s.parseJsObject

    To serialize a JSON value (of type JsValue) in compact mode, you can just use toString. To pretty print, use the method prettyPrint.

    doc.toString
    doc.prettyPrint

    With a JsObject or JsArray, you can refer to the individual elements with a variation of array syntax, like this:

    doc("store")("bicycle")("color")
    doc("store")("book")(0)("author")

    Note that we follow Scala's array access convention by () rather than [] in JavaScript.

    Besides, you can use the dot notation to access its fields/elements just like in JavaScript:

    doc.store.bicycle.color
    doc.store.book(0).author

    It is worth noting that we didn't define the type/schema of the document while Scala is a strong type language. In other words, we have both the type safe features of strong type language and the flexibility of dynamic language in this JSON library.

    If you try to access a non-exist field, JsUndefined is returned.

    scala> doc.book
    res11: unicorn.json.JsValue = undefined

    Although there are already several nice JSON libraries for Scala, the JSON objects are immutable by design, which is a natural choice for a functional language. For database, however, data mutation is necessary. Therefore, JsObject and JsArray are mutable data structures. You can set/add a field just like in JavaScript:

    json.store.bicycle.color = "green"

    To delete a field from JsObject, use remove method:

    doc.store.book(0) remove "price"

    It is same as setting it JsUndefined:

    doc.store.book(0).price = `JsUndefined`

    To delete an element from JsArray, the remove method will effectively remove it from the array. However, setting an element to undefined doesn't reduce the array size.

    // delete the first element and array size is smaller
    doc.store.book.remove(0)
    // set the first element to undefined but array size keeps same
    doc.store.book(0) = JsUndefined

    It is also possible to append an element or another array to JsArray:

    val a = JsArray(1, 2, 3, 4)
    a += 5
    
    a ++= JsArray(5, 6)

    Common iterative operations such as foreach, map, reduce can be applied to JsArray too.

    doc.store.book.asInstanceOf[JsArray].foreach { book =>
     println(book.price)
    }

    Because Scala is a static language, it is impossible to know doc.store.book is an array at compile time. So it is typed as generic JsValue, which is the parent type of specific JSON data types. Therefore, we use asInstanceOf[JsArray] to convert it to JsArray in order to use foreach.

    Definition Classes
    root
  • package smile
    Definition Classes
    root
  • package json

    Definition Classes
    smile
  • CompactPrinter
  • JsArray
  • JsBinary
  • JsBoolean
  • JsCounter
  • JsDate
  • JsDateTime
  • JsDecimal
  • JsDouble
  • JsInt
  • JsLong
  • JsNull
  • JsObject
  • JsObjectId
  • JsString
  • JsTime
  • JsTimestamp
  • JsUUID
  • JsUndefined
  • JsValue
  • JsValueOrdering
  • JsonHelper
  • JsonParser
  • JsonPrinter
  • JsonSerializer
  • ObjectId
  • ParserInput
  • PrettyPrinter

case class JsString(value: String) extends JsValue with Ordered[JsString] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsString
  2. Serializable
  3. Product
  4. Equals
  5. Ordered
  6. Comparable
  7. JsValue
  8. Dynamic
  9. AnyRef
  10. Any
Implicitly
  1. by json2String
  2. by orderingToOrdered
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JsString(value: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ->[B](y: B): (JsString, B)
    Implicit
    This member is added by an implicit conversion from JsString toArrowAssoc[JsString] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  4. def <(that: JsString): Boolean
    Definition Classes
    Ordered
  5. def <=(that: JsString): Boolean
    Definition Classes
    Ordered
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def >(that: JsString): Boolean
    Definition Classes
    Ordered
  8. def >=(that: JsString): Boolean
    Definition Classes
    Ordered
  9. def apply(range: Range): JsArray
    Definition Classes
    JsValue
  10. def apply(start: Int, end: Int, step: Int): JsArray
    Definition Classes
    JsValue
  11. def apply(start: Int, end: Int): JsArray
    Definition Classes
    JsValue
  12. def apply(index: Int): JsValue
    Definition Classes
    JsValue
  13. def apply(key: String): JsValue
    Definition Classes
    JsValue
  14. def applyDynamic(key: String)(index: Int): JsValue
    Definition Classes
    JsValue
  15. def asBoolean: Boolean
    Definition Classes
    JsStringJsValue
  16. def asDate: LocalDate
    Definition Classes
    JsStringJsValue
  17. def asDateTime: LocalDateTime
    Definition Classes
    JsStringJsValue
  18. def asDecimal: BigDecimal
    Definition Classes
    JsStringJsValue
  19. def asDouble: Double
    Definition Classes
    JsStringJsValue
  20. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  21. def asInt: Int
    Definition Classes
    JsStringJsValue
  22. def asLong: Long
    Definition Classes
    JsStringJsValue
  23. def asTime: LocalTime
    Definition Classes
    JsStringJsValue
  24. def asTimestamp: Timestamp
    Definition Classes
    JsStringJsValue
  25. def charAt(arg0: Int): Char
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String → CharSequence
  26. def chars(): IntStream
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    CharSequence
  27. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  28. def codePointAt(arg0: Int): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  29. def codePointBefore(arg0: Int): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  30. def codePointCount(arg0: Int, arg1: Int): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  31. def codePoints(): IntStream
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    CharSequence
  32. def compactPrint: String
    Definition Classes
    JsValue
  33. def compare(that: JsString): Int
    Definition Classes
    JsString → Ordered
  34. def compareTo(that: JsString): Int
    Definition Classes
    Ordered → Comparable
  35. def compareToIgnoreCase(arg0: String): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  36. def concat(arg0: String): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  37. def contains(arg0: CharSequence): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  38. def contentEquals(arg0: CharSequence): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  39. def contentEquals(arg0: StringBuffer): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  40. def endsWith(arg0: String): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  41. def ensuring(cond: (JsString) => Boolean, msg: => Any): JsString
    Implicit
    This member is added by an implicit conversion from JsString toEnsuring[JsString] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  42. def ensuring(cond: (JsString) => Boolean): JsString
    Implicit
    This member is added by an implicit conversion from JsString toEnsuring[JsString] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  43. def ensuring(cond: Boolean, msg: => Any): JsString
    Implicit
    This member is added by an implicit conversion from JsString toEnsuring[JsString] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  44. def ensuring(cond: Boolean): JsString
    Implicit
    This member is added by an implicit conversion from JsString toEnsuring[JsString] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  45. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. def equals(o: Any): Boolean
    Definition Classes
    JsString → Equals → AnyRef → Any
  47. def equalsIgnoreCase(arg0: String): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  48. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  49. def get(key: String): Option[JsValue]
    Definition Classes
    JsValue
  50. def getBytes(): Array[Byte]
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  51. def getBytes(arg0: Charset): Array[Byte]
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  52. def getBytes(arg0: String): Array[Byte]
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
    Annotations
    @throws(classOf[java.io.UnsupportedEncodingException])
  53. def getChars(arg0: Int, arg1: Int, arg2: Array[Char], arg3: Int): Unit
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  54. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  55. def hashCode(): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String → AnyRef → Any
  56. def indexOf(arg0: String, arg1: Int): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  57. def indexOf(arg0: String): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  58. def indexOf(arg0: Int, arg1: Int): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  59. def indexOf(arg0: Int): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  60. def intern(): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
    Annotations
    @native()
  61. def isEmpty(): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  62. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  63. def lastIndexOf(arg0: String, arg1: Int): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  64. def lastIndexOf(arg0: String): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  65. def lastIndexOf(arg0: Int, arg1: Int): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  66. def lastIndexOf(arg0: Int): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  67. def length(): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String → CharSequence
  68. def matches(arg0: String): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  69. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  70. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  71. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  72. def offsetByCodePoints(arg0: Int, arg1: Int): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  73. def prettyPrint: String
    Definition Classes
    JsValue
  74. def productElementNames: Iterator[String]
    Definition Classes
    Product
  75. def regionMatches(arg0: Boolean, arg1: Int, arg2: String, arg3: Int, arg4: Int): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  76. def regionMatches(arg0: Int, arg1: String, arg2: Int, arg3: Int): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  77. def remove(index: Int): JsValue
    Definition Classes
    JsValue
  78. def remove(key: String): Option[JsValue]
    Definition Classes
    JsValue
  79. def replace(arg0: CharSequence, arg1: CharSequence): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  80. def replace(arg0: Char, arg1: Char): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  81. def replaceAll(arg0: String, arg1: String): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  82. def replaceFirst(arg0: String, arg1: String): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  83. def selectDynamic(key: String): JsValue
    Definition Classes
    JsValue
  84. def split(arg0: String): Array[String]
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  85. def split(arg0: String, arg1: Int): Array[String]
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  86. def startsWith(arg0: String): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  87. def startsWith(arg0: String, arg1: Int): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  88. def subSequence(arg0: Int, arg1: Int): CharSequence
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String → CharSequence
  89. def substring(arg0: Int, arg1: Int): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  90. def substring(arg0: Int): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  91. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  92. def toCharArray(): Array[Char]
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  93. def toLowerCase(): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  94. def toLowerCase(arg0: Locale): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  95. def toString(): String
    Definition Classes
    JsStringJsValue → AnyRef → Any
  96. def toUpperCase(): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  97. def toUpperCase(arg0: Locale): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  98. def trim(): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
  99. def update(index: Int, value: JsValue): JsValue
    Definition Classes
    JsValue
  100. def update(key: String, value: JsValue): JsValue
    Definition Classes
    JsValue
  101. def updateDynamic(index: Int)(value: JsValue): JsValue
    Definition Classes
    JsValue
  102. def updateDynamic(key: String)(value: JsValue): JsValue
    Definition Classes
    JsValue
  103. val value: String
  104. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  105. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  106. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Shadowed Implicit Value Members

  1. final def +(arg0: Any): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (jsString: String).+(arg0)
    Definition Classes
    String
  2. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from JsString toany2stringadd[JsString] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (jsString: any2stringadd[JsString]).+(other)
    Definition Classes
    any2stringadd
  3. def <(that: JsString): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toOrdered[JsString] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsString: Ordered[JsString]).<(that)
    Definition Classes
    Ordered
  4. def <=(that: JsString): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toOrdered[JsString] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsString: Ordered[JsString]).<=(that)
    Definition Classes
    Ordered
  5. def >(that: JsString): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toOrdered[JsString] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsString: Ordered[JsString]).>(that)
    Definition Classes
    Ordered
  6. def >=(that: JsString): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toOrdered[JsString] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsString: Ordered[JsString]).>=(that)
    Definition Classes
    Ordered
  7. def compare(that: JsString): Int
    Implicit
    This member is added by an implicit conversion from JsString toOrdered[JsString] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsString: Ordered[JsString]).compare(that)
    Definition Classes
    Ordered
  8. def compareTo(arg0: String): Int
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsString: String).compareTo(arg0)
    Definition Classes
    String → Comparable
  9. def compareTo(that: JsString): Int
    Implicit
    This member is added by an implicit conversion from JsString toOrdered[JsString] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsString: Ordered[JsString]).compareTo(that)
    Definition Classes
    Ordered → Comparable
  10. def equals(arg0: AnyRef): Boolean
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsString: String).equals(arg0)
    Definition Classes
    String → AnyRef → Any
  11. def toString(): String
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsString: String).toString()
    Definition Classes
    String → CharSequence → AnyRef → Any

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from JsString toStringFormat[JsString] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def getBytes(arg0: Int, arg1: Int, arg2: Array[Byte], arg3: Int): Unit
    Implicit
    This member is added by an implicit conversion from JsString toString performed by method json2String in smile.json.
    Definition Classes
    String
    Annotations
    @Deprecated
    Deprecated
  3. def [B](y: B): (JsString, B)
    Implicit
    This member is added by an implicit conversion from JsString toArrowAssoc[JsString] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[JsString]

Inherited from Comparable[JsString]

Inherited from JsValue

Inherited from Dynamic

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion json2String fromJsString to String

Inherited by implicit conversion orderingToOrdered fromJsString to Ordered[JsString]

Inherited by implicit conversion any2stringadd fromJsString to any2stringadd[JsString]

Inherited by implicit conversion StringFormat fromJsString to StringFormat[JsString]

Inherited by implicit conversion Ensuring fromJsString to Ensuring[JsString]

Inherited by implicit conversion ArrowAssoc fromJsString to ArrowAssoc[JsString]

Ungrouped