jsondecimals

package
v0.0.0-...-4092974 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Quote

func Quote(json []byte, paths ...string) ([]byte, error)

Quote quotes json decimal number values in order to preserve exact value after Unmarshalling Unmarshalling json decimal number values to float presents bad coding practice, cause float is not able to present all decimal numbers, resulting in invalid data stored in databases and calculated with.

For setting path argument please refer to https://github.com/tidwall/gjson

func Unquote

func Unquote(json []byte, paths ...string) ([]byte, error)

Unquote removes quotes from quoted json decimal number values in order to present them back as JSON Numbers

For setting path argument please refer to https://github.com/tidwall/gjson

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL