Update json parser readme (#8532)

This commit is contained in:
Samantha Wang 2020-12-15 09:09:11 -08:00 committed by GitHub
parent 21253ecae1
commit d9d6a194b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -3,8 +3,8 @@
The JSON data format parses a [JSON][json] object or an array of objects into The JSON data format parses a [JSON][json] object or an array of objects into
metric fields. metric fields.
**NOTE:** All JSON numbers are converted to float fields. JSON String are **NOTE:** All JSON numbers are converted to float fields. JSON strings and booleans are
ignored unless specified in the `tag_key` or `json_string_fields` options. ignored unless specified in the `tag_key` or `json_string_fields` options.
### Configuration ### Configuration
@ -36,7 +36,7 @@ ignored unless specified in the `tag_key` or `json_string_fields` options.
"my_tag_2" "my_tag_2"
] ]
## Array of glob pattern strings keys that should be added as string fields. ## Array of glob pattern strings or booleans keys that should be added as string fields.
json_string_fields = [] json_string_fields = []
## Name key is the key to use as the measurement name. ## Name key is the key to use as the measurement name.