-
Notifications
You must be signed in to change notification settings - Fork 200
CFE-3105: Made format collect data container #6223
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: master
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 |
|---|---|---|
|
|
@@ -46,6 +46,7 @@ bundle edit_line init_insert | |
| "key='S_123_list' value='{ \"one\", \"two\", \"\\\"three\\\"\" }'"; | ||
| "key='S_container_1' value='[null]'"; | ||
| "key='S_container_2' value='[{\"x\":123},\"yz\"]'"; | ||
| "key='S_function' value='{\"hello\":\"world\"}'"; | ||
|
Member
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. Must you escape the double quotes? I see it's done there before, but is it required? |
||
| } | ||
|
|
||
| ####################################################### | ||
|
|
@@ -82,6 +83,7 @@ bundle agent test | |
| "array[S_container_1]" string => format("%S", mycontainer1); | ||
| "array[S_container_2]" string => format("%S", mycontainer2); | ||
| "formatted" slist => maparray("key='$(this.k)' value='$(this.v)'", "array"); | ||
| "array[S_function]" string => format("%S", parsejson('{"hello": "world"}')); | ||
|
Member
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. I think we should cover a json string directly to illustrate the behavior |
||
|
|
||
| files: | ||
| "$(G.testfile).actual" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.