While the current implementation is same as gojq v0.12.7, I changed in the HEAD version to emit null for indexing string by out of range. This is more consistent with array indexing and behaviors of other languages; in JavaScript "abcde"[10] results in undefined, not "". What do you think?
While the current implementation is same as gojq v0.12.7, I changed in the HEAD version to emit
null
for indexing string by out of range. This is more consistent with array indexing and behaviors of other languages; in JavaScript"abcde"[10]
results inundefined
, not""
. What do you think?