Skip to content

json-encode-string usage for reformating #14

@ancane

Description

@ancane

Hi, @gongo.
I'm trying to understand why json-encode-string is called in json-reformat:string-to-string function.
I would expect a reformating tool to be just reformatting json, but not encoding it in process.
The example of my confusion is following.

I'm using relative URLs intensively.
When my HTTP server gives me back:

{"href": "/v1/subscriptions"}

after json-reformat-region I get:

{
    "href": "\/v1\/subscriptions"
}

which is not what I expect.
Can you, please, suggest how can we mitigate this?
Thank you.

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