parser

package
v0.0.0-...-76b4f34 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(path string, json [][]byte) ([][]byte, error)

func Get

func Get(path string, json [][]byte, tokenize bool) ([][]byte, error)

Get navigates a dot separated list of fields within a document input is the fields and list of tokenized json docs to parse Tokenize param if true, treats array as a list of items (for further breakdown) if false, treats array as just a string, and does not break down the array

func ProcessExpression

func ProcessExpression(expr string, json [][]byte) ([][]byte, error)

ProcessExpression processes a given json array with the matching expressions This is the entry point for the jpath parser. This expects a json byte array tokenized input already.

func Select

func Select(path string, json [][]byte) ([][]byte, error)

func Slice

func Slice(expr string, json [][]byte) ([][]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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