Skip to content

Support the substr operation #19

@bartjkdp

Description

@bartjkdp

It would be really convenient to have the substr operation in the json-logic-py implementation. This can be used for basic string manipulation. The substr operation is listed on https://jsonlogic.com/operations.html#merge, but not part of the official JSON Logic implementation.

E.g.:

{"substr": ["jsonlogic", 4]}

Returns

"logic"

I already have a local implementation and can create a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions