Skip to content

Option to show small Double values not in exponential format in JSON #1262

@mevogt

Description

@mevogt

I'm looking for a way, that small Double values are not represented in exponential format within the JSON?

e.g. instead {"value": 1.0E-4} it should show {"value": 0.0001}

I've created a custom serializer using encodeString, but unfortunately there is no way to tell the encoder, that it should not print the quotes.

Is there a workaround?

(I'm using Version 1.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions