jsonutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package jsonutil provides shared JSON numeric conversions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeNumbers

func NormalizeNumbers(value any) (any, error)

NormalizeNumbers replaces json.Number values in a decoded JSON value with driver-compatible numbers. Integer tokens must fit int64; decimal and exponent tokens use float64. Maps and slices are updated in place and may be partially normalized on error. Callers must discard the decoded record on error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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