itchyny
itchyny
I can't understand this issue. Can you provide some problematic code?
Okay, I'd like to know how you use the library. In what use case the current behavior causes problems?
Let me think carefully about changing (or adding) the API. Delaying the normalization could introduce undesired overhead due to increasing count of number conversions (e.x. `echo '[0,1,2,3,4]' | gojq '[.[]...
Delaying the normalization could affect the package users adding custom internal functions with `gojq.WithFunction`.
At this moment, I have no good idea to solve this issue without increasing the number of parsing or breaking the custom internal function APIs. Also, I think in the...
I have pushed an experimental fix for this issue to `json-number` branch. You can install with `go install github.com/itchyny/gojq@json-number`.
This issue is blocked by https://github.com/go-yaml/yaml/issues/807.
I'm just for curious, what kind of custom function you want to integrate with gojq?
For your usecase you can use WithVariables.
This is related to the issue #212 and will be resolved by the `json-number` branch.