json

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 9 Imported by: 6

README

json plugin

The json plugin add some json-related commands to the command loop.

The new commands are:

  • json : creates a json object out of key/value pairs or lists
  • jsonpath : parses a json object and extract specified fields
  • format : pretty-print specified json object

Documentation

Overview

Package json add some json-related commands to the command loop.

The new commands are:

json : creates a json object out of key/value pairs or lists
jsonpath : parses a json object and extract specified fields
format : pretty-print specified json object

Index

Constants

This section is empty.

Variables

View Source
var (
	Plugin = &jsonPlugin{}
)

Functions

func PrintJson

func PrintJson(v interface{})

Function PrintJson prints the specified object formatted as a JSON object

func StringJson

func StringJson(v interface{}, unq bool) (ret string)

Function StringJson return the specified object as a JSON string

Types

This section is empty.

Jump to

Keyboard shortcuts

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