json_util

package
v2.8.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package json_util provides JSON utilities including a custom RawMessage type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawMessage

type RawMessage []byte

RawMessage is a custom JSON raw message type that marshals empty slices as "null".

func (RawMessage) MarshalJSON

func (m RawMessage) MarshalJSON() ([]byte, error)

MarshalJSON customizes the JSON marshaling behavior for RawMessage. Empty RawMessage values are marshaled as "null" instead of "[]".

func (*RawMessage) UnmarshalJSON

func (m *RawMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of the JSON data.

Jump to

Keyboard shortcuts

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