json

package
v0.1.0-dev.20260308222923 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package json provides JSON encoding and decoding for the operation graph.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	op.ProviderBase
}

Provider provides JSON encoding and decoding operations. +devlore:access=both

func (*Provider) Decode

func (p *Provider) Decode(data string) (any, error)

Decode parses a JSON string into a Go value.

func (*Provider) Encode

func (p *Provider) Encode(value any) (string, error)

Encode marshals a Go value to a compact JSON string.

func (*Provider) EncodeIndent

func (p *Provider) EncodeIndent(value any, indent string) (string, error)

EncodeIndent marshals a Go value to an indented JSON string.

Jump to

Keyboard shortcuts

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