bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class JSONBitByBit

    Index

    Constructors

    • Parameters

      • context: ContextBase

      Returns JSONBitByBit

    create

    • Creates an empty JavaScript object

      Returns any

      any

      empty

      false

    jsonpath

    • Queries the input value

      Parameters

      Returns any

      any

      query

      false

    • Sets value to the json by providing a path

      Parameters

      • inputs: SetValueDto

        a value to be added, json and a path

      Returns any

      any

      set value on path

      false

    • Sets multiple values to the json by providing paths

      Parameters

      Returns any

      any

      set values on paths

      false

    • Find paths to elements in object matching path expression

      Parameters

      • inputs: PathsDto

        a json value and a query

      Returns any

      any

      paths

      false

    preview

    • Previews json and gives option to save it

      Parameters

      Returns void

      any

      json preview and save

      false

    • Previews json

      Parameters

      Returns void

      any

      json preview

      false

    props

    • Sets value on given property of the given json

      Parameters

      Returns any

      any

      set value on property

      false

    • Gets json from array by first property match. This is very simplistic search and only returns the first match. If you need more complex search, you can use jsonpath query with filters.

      Parameters

      Returns any

      any

      get json from array by prop match

      false

    • Gets value of the property in the given json

      Parameters

      Returns any

      any

      get value on property

      false

    transform

    • Stringifies the input value

      Parameters

      Returns string

      string

      stringify

      false

    • Parses the input value

      Parameters

      Returns any

      any

      parse

      false