Skip to content

$string must escape special chars in field names #74

Closed

Description

@aeberhart

Input

$string({"te\nst":"te\nst"})

Output

{"te
st":"te\nst"}

Expected

{"te\nst":"te\nst"}

Activity

  1. aeberhart commented on Oct 30, 2025

    @aeberhart
    ContributorAuthor

    re-applying $eval() to the result of $string manages to parse the illegal JSON
    this expression causes an error though:

    {"te\nst":"te\nst"} ~> |$|{}|
    Expected valid string character at 1:5

  2. added this to the 0.9.10 milestone on Oct 30, 2025
  3. added a commit that references this issue on Dec 5, 2025
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions