diff --git a/core/cautils/getter/json.go b/core/cautils/getter/json.go new file mode 100644 index 00000000..4aab97b4 --- /dev/null +++ b/core/cautils/getter/json.go @@ -0,0 +1,13 @@ +package getter + +import ( + jsoniter "github.com/json-iterator/go" +) + +var json jsoniter.API + +func init() { + // NOTE(fredbi): attention, this configuration rounds floats down to 6 digits + // For finer-grained config, see: https://pkg.go.dev/github.com/json-iterator/go#section-readme + json = jsoniter.ConfigFastest +}