json_transmute

package module
v0.0.0-...-8627e97 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 6 Imported by: 0

README

Go implementation of JSON Transmute

See JSON-Transmute for the full documentation of JSON-Transmute.

Notes

  • For JSON-Path functionality, oliveagle/jsonpath is used, which deviates from the reference document where it returns arrays for multiple matches, but only first match of single matches.

  • #format is implemented using go text/template. An additional template function path is available, it uses JSON-Path to reference context.

Documentation

Index

Constants

View Source
const OperatorExtend = "#extend"
View Source
const OperatorFirst = "#first"
View Source
const OperatorFormat = "#format"
View Source
const OperatorMap = "#map"
View Source
const OperatorSum = "#sum"
View Source
const OperatorTransmute = "#transmute"

Variables

This section is empty.

Functions

func Transmute

func Transmute(value any, context any) (any, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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