Skip to content

Commit

Permalink
docs: add docs for the new lossy option of the parse_json vrl function
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgehermo9 committed Aug 14, 2024
1 parent 61b1b18 commit 2e72d85
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions website/cue/reference/remap/functions/parse_json.cue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ remap: functions: parse_json: {
required: false
type: ["integer"]
},
{
name: "lossy"
description: """
Whether to parse the JSON in a lossy manner. Replaces invalid UTF-8 characters
with the unicode character `�` (U+FFFD) if set to true, otherwise returns an error
if there are any invalid UTF-8 characters present.
"""
required: false
default: true
type: ["boolean"]
},
]
internal_failure_reasons: [
"`value` is not a valid JSON-formatted payload.",
Expand Down

0 comments on commit 2e72d85

Please sign in to comment.