com.quantifind.json

ScalaJsonFactory

object ScalaJsonFactory extends Serializable

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

Type Members

  1. implicit class JsonOptString extends AnyRef

  2. implicit class JsonString extends AnyRef

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def deserialize[T](value: String)(implicit arg0: Manifest[T]): T

  7. def deserializeToMap(json: String): Map[String, Any]

  8. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  12. def getFieldOnly(fieldName: String, json: String): Option[String]

    extract just one string value for a json string, this should be faster than deserializing a map or a specific object mapping.

    extract just one string value for a json string, this should be faster than deserializing a map or a specific object mapping. If the field contains an array or an object, it will return their json representation. If the json is not valid, this might still succeed properly.

    fieldName

    the name of the field to extract

    json

    the json to look into

    returns

    the value extracted from the json if it's found, otherwise None.

  13. def getFieldOnly(fieldName: String, json: InputStream): Option[String]

    extract just one string value for a json string, this should be faster than deserializing a map or a specific object mapping.

    extract just one string value for a json string, this should be faster than deserializing a map or a specific object mapping. If the field contains an array or an object, it will return their json representation. If the json is not valid, this might still succeed properly.

    fieldName

    the name of the field to extract

    json

    the json to look into

    returns

    the value extracted from the json if it's found, otherwise None.

  14. def getFieldOnlyAs[T](fieldName: String, json: String)(implicit arg0: Manifest[T]): Option[T]

    get a field and deserializes it without deserializing the whole json

    get a field and deserializes it without deserializing the whole json

    T
    fieldName
    json
    returns

  15. def getJson(topLevelStrMap: Map[String, String]): String

  16. def getObjectMapper(): ObjectMapper

  17. def getPrettyObjectMapper: ObjectMapper

  18. def getTopLevelJsonMap(json: String): Map[String, String]

  19. def hashCode(): Int

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

    Definition Classes
    Any
  21. def mkSchema[T](implicit arg0: ClassTag[T]): JsonSchema

    Generates a JSON schema object for the specified type.

    Generates a JSON schema object for the specified type. Example usage:

    // create schema object
    val jsonSchema = ScalaJsonFactory.mkSchema[MongoBean]
    // marshal it out
    ScalaJsonFactory.getObjectMapper.writeValueAsString(jsonSchema)
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  25. def serialize(value: AnyRef): String

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

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. def typeReference[T](implicit arg0: Manifest[T]): TypeReference[T]

  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped