json

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code specific to deserializing JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Driver

func Driver() shared.Driver

Types

type JSON

type JSON map[string]any

A JSON object.

func (JSON) AsValue

func (json JSON) AsValue() shared.Value

func (JSON) Keys

func (json JSON) Keys() []string

func (JSON) Lookup

func (json JSON) Lookup(key string) (shared.Value, bool)

type Value

type Value struct {
	// contains filtered or unexported fields
}

A JSON value.

func (Value) AsDict

func (v Value) AsDict() (shared.Dict, bool)

func (Value) AsSlice

func (v Value) AsSlice() ([]shared.Value, bool)

func (Value) Interface

func (v Value) Interface() any

Jump to

Keyboard shortcuts

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