json

package
v1.7.10 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package json provides utilities for working with JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func YAMLToJSON

func YAMLToJSON(node *yaml.Node, indentation int, buffer io.Writer) error

YAMLToJSON will convert the provided YAML node to JSON in a stable way not reordering keys.

func YAMLToJSONCompatibleGoType added in v1.7.8

func YAMLToJSONCompatibleGoType(node *yaml.Node) (any, error)

YAMLToJSONCompatibleGoType will convert the provided YAML node to a compatible Go type ready for json marshalling in a stable way not reordering keys. Provided to allow a custom JSON marshalling implementation to be used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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