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
I encountered an issue where a file in JSON format, which contained a content issue (newline character splitting a string), could not be decoded by a JSON parser but was successfully decoded by the YAML parser. This behavior caused the file to be incorrectly identified as YAML, even though it was intended to be JSON.
Steps to Reproduce:
Create a file with the following content (malformed JSON with a newline character in a string):
Description
I encountered an issue where a file in JSON format, which contained a content issue (newline character splitting a string), could not be decoded by a JSON parser but was successfully decoded by the YAML parser. This behavior caused the file to be incorrectly identified as YAML, even though it was intended to be JSON.
Steps to Reproduce:
Create a file with the following content (malformed JSON with a newline character in a string):
Attempt to decode this file:
The YAML parser decodes the file into the following structure:
Expected Behavior:
The YAML parser should either:
Actual Behavior:
The YAML parser successfully decodes the malformed JSON, causing the file to be misclassified as YAML. In actually, the feeded file is JSON format.
Extra resource:
file:
tt.json
The text was updated successfully, but these errors were encountered: