bodyjson

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package bodyjson shares native typed JSON and presence reconstruction inside Bindly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePublic

func DecodePublic(raw []byte, target reflect.Type) (any, error)

DecodePublic excludes canonical internal members before invoking JSON decoders.

func FilterPublic

func FilterPublic(raw []byte, target reflect.Type) ([]byte, error)

FilterPublic shares canonical JSON filtering with a registered JSON decoder. The caller retains its existing decoder and native presence reconstruction.

func MarkPresence

func MarkPresence(target reflect.Value, raw json.RawMessage, public bool) error

markPresence records authored JSON keys on generated set-marker holders. JSON decoding remains encoding/json's responsibility; this traversal only projects source presence onto its already-decoded typed object graph.

func VerifyTypedRoundtrip

func VerifyTypedRoundtrip(raw []byte, target reflect.Type) (any, error)

VerifyTypedRoundtrip reconstructs only Replay.encodeField's immediately preceding local marshal. Stored raw replay continues through the public body Source.

Types

This section is empty.

Jump to

Keyboard shortcuts

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