Object

utils

JsonConvert

Related Doc: package utils

Permalink

object JsonConvert

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonConvert
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Header(key: String, value: Either[String, ListBuffer[Header]]) extends Product with Serializable

    Permalink

    Class to hold a json key, and any subkeys

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addHeaders(row: JsArray, headers: ListBuffer[Header], ignore: Array[String], prefix: String, prefixSeperator: String, hidePrefix: Boolean, fixGeometry: Boolean): Unit

    Permalink

    Helper function to create list of headers

  5. def addHeaders(row: JsObject, headers: ListBuffer[Header], ignore: Array[String], prefix: String, prefixSeperator: String, hidePrefix: Boolean, fixGeometry: Boolean): Unit

    Permalink

    Helper function to create list of headers

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getHeader(key: Any, prefix: String, prefixSeperator: String, hidePrefix: Boolean, fixGeometry: Boolean): String

    Permalink

    Helper function to create the text that is printed as header

  13. def getPrefix(key: Any, prefix: String, prefixSeperator: String): String

    Permalink

    Helper function to create a new prefix based on the key, and current prefix

  14. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  16. def jsonToCSV(dataList: List[JsObject]): Enumerator[String]

    Permalink

    Returns the JSON formatted as CSV.

    Returns the JSON formatted as CSV.

    This will take the first json element and create a header from this. All additional rows will be parsed based on this first header. Any fields not in the first row, will not be outputed.

    dataList

    the json to be converted to CSV.

    returns

    Enumarator[String]

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def printHeader(headers: ListBuffer[Header]): String

    Permalink

    Helper function to recursively print the header

  21. def printRow(row: JsArray, headers: ListBuffer[Header], prefix: String, prefixSeperator: String): String

    Permalink

    Helper function to print data row of JSON Array.

  22. def printRow(row: JsObject, headers: ListBuffer[Header], prefix: String, prefixSeperator: String): String

    Permalink

    Helper function to print data row of JSON Object.

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

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped