From 14bf938e72ad1bb90626d14254c20c82b2575baa Mon Sep 17 00:00:00 2001 From: Antoine Toulme <antoine@lunar-ocean.com> Date: Sun, 27 Oct 2024 22:15:50 -0700 Subject: [PATCH 1/2] [chore] fix reference to JSON lib --- pkg/ottl/ottlfuncs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ottl/ottlfuncs/README.md b/pkg/ottl/ottlfuncs/README.md index 66e9c8a2930e..990cd68b4229 100644 --- a/pkg/ottl/ottlfuncs/README.md +++ b/pkg/ottl/ottlfuncs/README.md @@ -1292,7 +1292,7 @@ The `ParseJSON` Converter returns a `pcommon.Map` or `pcommon.Slice` struct that `target` is a Getter that returns a string. This string should be in json format. If `target` is not a string, nil, or cannot be parsed as JSON, `ParseJSON` will return an error. -Unmarshalling is done using [jsoniter](https://github.com/json-iterator/go). +Unmarshalling is done using [goccy/go-json](github.com/goccy/go-json). Each JSON type is converted into a `pdata.Value` using the following map: ``` From 6711c557ad1d47f01b7f13965eaad9f6613ad762 Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:15:55 -0600 Subject: [PATCH 2/2] Update pkg/ottl/ottlfuncs/README.md Co-authored-by: xu0o0 <hqcat6@gmail.com> --- pkg/ottl/ottlfuncs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ottl/ottlfuncs/README.md b/pkg/ottl/ottlfuncs/README.md index 990cd68b4229..69f6163f10e4 100644 --- a/pkg/ottl/ottlfuncs/README.md +++ b/pkg/ottl/ottlfuncs/README.md @@ -1292,7 +1292,7 @@ The `ParseJSON` Converter returns a `pcommon.Map` or `pcommon.Slice` struct that `target` is a Getter that returns a string. This string should be in json format. If `target` is not a string, nil, or cannot be parsed as JSON, `ParseJSON` will return an error. -Unmarshalling is done using [goccy/go-json](github.com/goccy/go-json). +Unmarshalling is done using [goccy/go-json](https://github.com/goccy/go-json). Each JSON type is converted into a `pdata.Value` using the following map: ```