1
Fork 0

Unquoted strings inconsistent between serialization and de-serialization #4

Closed
opened 2023-03-01 18:56:01 +01:00 by lucas · 0 comments
Owner

Serialization will not quote strings containing -, but in parsing/de-serialization, that is not a valid character in unquoted strings.

According to Autodesk's JS parser, these are the characters that are not valid in identifiers:

  • \t
  • \n
  • =
  • :

So it's actually both parser and serialization that are incorrect, in different ways each.

Serialization will not quote strings containing `-`, but in parsing/de-serialization, that is not a valid character in unquoted strings. According to [Autodesk's JS parser](https://github.com/Autodesk/sjson), these are the characters that are not valid in identifiers: - ` ` - `\t` - `\n` - `=` - `:` So it's actually both parser and serialization that are incorrect, in different ways each.
lucas added the
part/parser
stage/actionable
part/serialize
kind/bug
labels 2023-03-01 18:56:01 +01:00
lucas added
stage/design
and removed
stage/actionable
labels 2023-03-01 19:01:50 +01:00
lucas closed this issue 2023-03-01 19:48:25 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lucas/serde_sjson#4
No description provided.