Jexl icon indicating copy to clipboard operation
Jexl copied to clipboard

Object keys with a space

Open chetbox opened this issue 2 years ago • 2 comments

How do I write an object with a key that has a space?

This example seems to fail: https://czosel.github.io/jexl-playground/#/?input=%7B%22key%20with%20a%20space%22%3A%20123%7D

In fact, any key in quotes fails. Given Javascript lets you have keys with a space this is how I'd expect to achieve the same thing with Jexl.

chetbox avatar Jul 13 '22 16:07 chetbox

In fact, this was fixed at 2021. https://github.com/TomFrost/Jexl/commit/833f5a54281a7172c3f6cb3f0e76f7b4d5e4e89d Could someone push the latest version on the github to the npm repository?

ihsanciftci avatar Jan 12 '23 13:01 ihsanciftci

Well spotted! In fact there don't seem to have been a release since September 2020. @TomFrost Are you happy to make a new release?

Also @TomFrost, with reference to #82 and #116, do you need some help maintaining this project? If not I'm inclined to release a fork that is more readily maintained and try to direct all users of this library there.

chetbox avatar Jan 12 '23 14:01 chetbox