• Transforms JSON data path into a readable string. Supports multiple nesting layers. Use the second parameter if specific property failed, but is not included in the data path.

    Parameters

    • dataPath: string
    • Optional propertyName: string

    Returns string

    Example

    `/objects/0/property_name` turns into `Property 'property_name' of the first object`
    

    Example

    `/objects/0` turns into `The first object`
    

Generated using TypeDoc