Bitbybit Docs
    Preparing search index...

    Class SetValuesOnPathsDto (Inputs.JSON)

    Feeds json.setValuesOnPaths: the JSON to copy and change and three lists of the same length, where entry i of paths, props and values is one change.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionaljson: unknown
      • Optionalvalues: unknown[]
      • Optionalpaths: string[]
      • Optionalprops: string[]

      Returns SetValuesOnPathsDto

    Properties

    json: unknown

    The object to change; it stays as it is and a changed copy comes back

    undefined
    
    values: unknown[]

    The values to set, one per change, in the same order as paths and props

    undefined
    
    paths: string[]

    One JSONPath expression per change, each selecting the parent objects, such as $.parts[*]

    undefined
    
    props: string[]

    One property name per change, set on every object its path reaches

    undefined