-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possibility of making the json escape function not sorting the input? #30
Comments
Hello @RESDXChgfore9hing In sttr code can be found here processors/json.go#L315 |
it seems like encoding/json dont intend to fix and others suggested to use other library> For the people who stumble upon this issue from Google, the following two libraries (pick one) can help you if you need an ordered JSON map: https://gitlab.com/c0b/go-ordered-json Also, for reference, see this common StackOverflow answer: I think we would be better of creating a "json-escape-no-sort" and making the current one "json-escape-with-sort" |
Hello @RESDXChgfore9hing
I will do a tagged release this week. Have to look into few things at other area as well. |
damn thats fast,looks good. will wait for release at weekend |
A new tagged release version is out now. https://github.com/abhimanyu003/sttr/releases/tag/v0.2.14 |
It would be useful to have a extra flag to make sure the output keys is not sorted.
Since sometimes,I need to feed it to other cli tool or onlt want sttr to just escape it directly will keeping it,unsorted*.
The text was updated successfully, but these errors were encountered: