Skip to content

JSON does not mark a tab inside a string as an error #23731

@isidorn

Description

@isidorn
  1. Have the following json:
{
  "a": "	"
}
  1. JSON does not report an error (I have a tab inside the string)
  2. JSON.parse does not allow tabs inside strings which leads to very confusing behavior and optimally we would highlight this user error

fyi @alexandrudima

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugjsonJSON support issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions