jmespath-community / jmespath.spec

JMESPath Specification
6 stars 3 forks source link

Whitespace should be allowed around a JSON value in a backtick literal #128

Closed gibson042 closed 1 year ago

gibson042 commented 1 year ago

The literal rule currently requires the contents inside `…` to be a JSON value, but it should instead allow any RFC 8259 JSON text, which allows leading and/or trailing whitespace. For example, an expression like `1 ` should be valid and result in 1 (as is in fact already the case in the live demo at the top of https://jmespath.site/ ).