Results 161 comments of Mike Farah

Yep this is a bug - it looks like when encoding numbers with leading zeros to JSON, it assumes that they are in octal format (which is why 040 is...

Yeah that's def not right - will look into it.

Fixed the first case in 4.33.3.

Dang I thought I fixed that. @spencer-cdw the link you have for the project without need to build is the wrong one - do you have an example? Or better...

yeah nice idea - I'm working on toml support at present, after I get that working I may work on this. Happy to receive PRs of course :)

That is odd - digging into the golang XML encoder - looks as though this was intentional: https://github.com/golang/go/issues/12400 :/

Okay cool - I'll look into a toml go library 👍🏼

Hmm the problem I'm having with the available toml libraries in go is that they are lossy. They will not only drop comments, but also the order of the keys...

I've made some progress with @pelletier toml library here: https://github.com/mikefarah/yq/pull/1439 - I haven't looked at it since last year. From memory I think the parsing is now working reasonably well...

I'm planning on releasing a readonly version next release :)