Skip to content

jdaddy changes the float number when pretty printing #10

@mzlogin

Description

@mzlogin

First of all, thanks for this plugin that I used for years.

I met a bad case when gqaj.

Example input:

{"a":10.00, "b": 11.10}

expected output:

{"a":10.00, "b": 11.10}

actual output:

{"a": 10.0, "b": 11.1}

I did some simple debugging, and found the problem was there:

return eval(quoted_keys)

but I don't know how to fix it.

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