Skip to content

string with bslash #23

Description

@sloanyyc

son5.loads('{a:"a/"}')
ValueError: :1 Unexpected "/" at column 7
such as 'http://domain/' can't jsonfiy

temp fix
`# comment /usr/local/lib/python3.7/site-packages/json5/parser.py

def sqchar__c2(self):
self._push('sqchar__c2')
self._seq([# lambda: self._not(self.bslash),
lambda: self._not(self.squote),

def dqchar__c2(self):
self._push('dqchar__c2')
self._seq([# lambda: self._not(self.bslash), # this line
lambda: self._not(self.dquote),`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions