jsonlogic
jsonlogic copied to clipboard
Wrong result when comparing number and string
package main
import (
"bytes"
"fmt"
"strings"
"github.com/diegoholiveira/jsonlogic/v3"
)
func main() {
logic := strings.NewReader(`{"<": ["9", 10]}`)
data := strings.NewReader(`{}`)
var result bytes.Buffer
jsonlogic.Apply(logic, data, &result)
fmt.Println(result.String())
}
expect true but got false
Can you provide a PR fixing it? :)
Can you please take a look if it's fixed in the latest release?
Can you please take a look if it's fixed in the latest release?
test ok on v3.2.5