You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Description: I'm encountering a JSON parsing error when using the confluent-schema-registry library to deserialize messages. The error occurs when the JSON encoded payload contains unescaped newline characters (\n) in string values.
Error Message: Bad escaped character in JSON at position X
Root Cause: The issue appears to be that the schema registry's JSON deserializer doesn't handle literal newline characters within JSON string values. When a message contains text with actual line breaks (not escaped \n), the JSON decoding fails.
Example Problematic Content:
{
"description": "Some text with actual line breaks
that span multiple lines
causing JSON decode to fail"
}
Fails in Code:
#SchemaRegistry.decode() method
Could you please suggest any reasonable solution. thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description: I'm encountering a JSON parsing error when using the confluent-schema-registry library to deserialize messages. The error occurs when the JSON encoded payload contains unescaped newline characters (\n) in string values.
Error Message:
Bad escaped character in JSON at position XRoot Cause: The issue appears to be that the schema registry's JSON deserializer doesn't handle literal newline characters within JSON string values. When a message contains text with actual line breaks (not escaped \n), the JSON decoding fails.
Example Problematic Content:
Fails in Code:
#SchemaRegistry.decode() method
Could you please suggest any reasonable solution. thanks!
Beta Was this translation helpful? Give feedback.
All reactions