Adds JSON_INVALID_UTF8_SUBSTITUTE flag to JsonEncoder.

Substitutes invalid UTF-8 sequences to ensure control characters and malformed data are properly handled.

Closes #3549107

Merge request reports

Loading