Skip to content

Backslash dropped in name when pretty=TRUE #16

@wch

Description

@wch

This is related to #4. In that issue, one level of escaping is lost in names. When pretty=TRUE, another level of escaping is list:

# Loses one level of escaping in name:
cat(RJSONIO::toJSON(list('foo\\\\.foo'='bar.\\\\bar'))){
# {
#   "foo\\.foo": "bar.\\\\bar" 
# }

# Loses two levels of escaping in name when pretty=T:
cat(RJSONIO::toJSON(list('foo\\\\.foo'='bar.\\\\bar'), pretty = TRUE))
# {
#         "foo\.foo" : "bar.\\\\bar"
# }

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