Documentation
¶
Overview ¶
package json includes JSON utilities commonly used in Kwil.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalMapWithoutFloat ¶
func UnmarshalMapWithoutFloat[T UnmarshalObject](b []byte) (T, error)
UnmarshalMapWithoutFloat unmarshals a JSON byte slice into a slice of maps. It will try to convert all return values into ints, but will keep them as strings if it fails. It ensures they aren't returned as floats, which is important for maintaining consistency with Kwil's decimal types. All returned types will be string, int64, or a []any.
Types ¶
Click to show internal directories.
Click to hide internal directories.