jsonx

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package jsonx provides JSON decoding with unknown-field capture.

Provider payloads evolve faster than this library ships. Every native typed struct in provider/* carries an `Extra map[string]json.RawMessage` field; Unmarshal routes any JSON key that has no corresponding struct field into Extra so no data is ever dropped (fidelity guarantee, DESIGN.md §5.2).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(data []byte, v any) error

Unmarshal decodes data into v like encoding/json.Unmarshal, then captures unrecognized object keys into v's `Extra map[string]json.RawMessage` field when one exists. v must be a non-nil pointer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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