-
Notifications
You must be signed in to change notification settings - Fork 30
CF-3932 : Stop HTML-escaping <, >, & in -o json output #3398
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| package output | ||
|
|
||
| import ( | ||
| "encoding/json" | ||
| "fmt" | ||
| "io" | ||
| "reflect" | ||
|
|
@@ -126,7 +125,7 @@ func (t *Table) printCore(writer io.Writer, auto bool) error { | |
|
|
||
| switch t.format { | ||
| default: | ||
| out, err := json.Marshal(v) | ||
| out, err := marshalJSON(v) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The intention and solution is straightforward, but these 2 functions are high blast-radius functions, and we need to pay additional attention before touching these. For example, can you please evaluate and check the impact on these Confluent Cloud commands that are still using the old marshal function? What should be updated if we make changes to |
||
| if err != nil { | ||
| return err | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have the similar issue to yaml format?