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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址