mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
This PR makes JsonProcessor's JSON parsing a little bit stricter so that we are not silently dropping data when given bad inputs. Previously if the input string began with something that could be parsed as a valid json field, then the processor would grab that and ignore the rest. For example, `123 "foo"` would be parsed as `123`, dropping the `"foo"`. Now by default it will throw an IllegalArgumentException on a string like this. A user can now set the `strict_json_parsing` parameter to false to get the old behavior. For example: ``` POST _ingest/pipeline/_simulate { "pipeline": { "description": "", "processors" : [ { "json" : { "field" : "message", "strict_json_parsing": false } } ] }, "docs": [ { "_source": { "message": "123 \"foo\"" } } ] }' ``` Closes #92898 |
||
---|---|---|
.. | ||
apis | ||
processors | ||
common-log-format-example.asciidoc | ||
enrich.asciidoc | ||
geo-match-enrich-policy-type-ex.asciidoc | ||
match-enrich-policy-type-ex.asciidoc | ||
processors.asciidoc | ||
range-enrich-policy-type-ex.asciidoc |