Skip to content
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

json: unsupported type: map[interface {}]interface{} #10

Open
ronaldoalvescosta opened this issue Sep 26, 2022 · 1 comment
Open

json: unsupported type: map[interface {}]interface{} #10

ronaldoalvescosta opened this issue Sep 26, 2022 · 1 comment

Comments

@ronaldoalvescosta
Copy link

// error:
// json: unsupported type: map[interface {}]interface{}

// solution:

// to be replaced
// https://github.com/json-iterator/go
// import "encoding/json"
// json.Marshal(&data)

// new
import jsoniter "github.com/json-iterator/go"
var json = jsoniter.ConfigCompatibleWithStandardLibrary
json.Marshal(&data)

@mfabricanti
Copy link

I applied this solution to workaround "json: unsupported type" error, but all fields inside "kubernetes" key (the only nested field I got - generated by fluentbit kubernetes field) is remaining in base64 value in SQS messages.

Other fields are ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants