Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neo4j Browser 'Export JSON' function does not escape backslash #1826

Open
markslater opened this issue Sep 16, 2022 · 0 comments
Open

Neo4j Browser 'Export JSON' function does not escape backslash #1826

markslater opened this issue Sep 16, 2022 · 0 comments
Labels

Comments

@markslater
Copy link

When exporting data as JSON from the Neo4j Browser UI, backslashes in the data are not escaped, resulting in invalid JSON.

  • Neo4j version: 4.4.10 Enterprise
  • Operating system: N/A (reproduced in public sandbox)
  • API/Driver: N/A

Steps to reproduce

Create a node with a property that contains a backslash:

CREATE ({name:"AC\\DC"})

Retrieve the property:

MATCH (n) RETURN n.name AS name

Note that in the UI, the name is shown correctly: "AC\DC"

Click on 'Export JSON'

The exported JSON is invalid because the backslash isn't escaped:

[
  {
    "name": "AC\DC"
  }
]

Expected behavior

The exported JSON should escape the backslash:

[
  {
    "name": "AC\\DC"
  }
]
@markslater markslater added the bug label Sep 16, 2022
@mnd999 mnd999 transferred this issue from neo4j/neo4j Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant