json parser's stop_on_invalid_record option is not functioning #16
-
Hello,
$ cat /tmp/sample.json
embulk conf
output file
umm I was expecting that the invalid records would be skipped, and the following file would be generated.
In an environment where invalid records are being input, how can I ensure that invalid records are skipped, and processing continues? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
AFAIR, It cannot parse inputs that is broken as JSON. |
Beta Was this translation helpful? Give feedback.
AFAIR,
stop_on_invalid_record: false
works when the input is valid as JSON, but the specified field does not exist. (Ex. for configroot: foo
, it returns"bar"
for input{"foo": "bar"}
. But it would fail for input{"non-foo": "bar"}
.)It cannot parse inputs that is broken as JSON.