Skip to content

evaluating 1 = true results in True (when should be False) due to bool being a subclass of int #21

@Hworden

Description

@Hworden
>>> import jsonata
>>> jsonata.Jsonata("true = 1").evaluate({})
True
>>> 

instead should be

>>> import jsonata
>>> jsonata.Jsonata("true = 1").evaluate({})
False
>>> 

can confirm here that this is the wrong behavior https://try.jsonata.org/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions