Documentation
¶
Overview ¶
Package jsonpath is for retrieving a part of JSON according to the JSONPath query syntax.
Index ¶
- func DisableMemoize[U Uint]() func(*pegJSONPathParser[U]) error
- func Parse(jsonPath string, config ...config.Config) (f func(src any, dst ...*[]any) ([]any, error), err error)
- func Pretty[U Uint](pretty bool) func(*pegJSONPathParser[U]) error
- func ResetNodeSliceSyncPool()
- func Retrieve(jsonPath string, src any, config ...config.Config) ([]any, error)
- func Size[U Uint](size int) func(*pegJSONPathParser[U]) error
- type Uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableMemoize ¶
func Parse ¶
func Parse(jsonPath string, config ...config.Config) (f func(src any, dst ...*[]any) ([]any, error), err error)
Parse returns the parser function using the given JSONPath.
func ResetNodeSliceSyncPool ¶
func ResetNodeSliceSyncPool()
Types ¶
Source Files
¶
- cache.go
- constants.go
- jsonpath.go
- jsonpath.peg.go
- jsonpath_doc.go
- jsonpath_parser.go
- syntax_basic_node.go
- syntax_basic_subscript.go
- syntax_compare_query.go
- syntax_compare_query_comparator_deep_eq.go
- syntax_compare_query_comparator_direct_eq.go
- syntax_compare_query_comparator_ge.go
- syntax_compare_query_comparator_gt.go
- syntax_compare_query_comparator_le.go
- syntax_compare_query_comparator_lt.go
- syntax_compare_query_comparator_number_ge.go
- syntax_compare_query_comparator_number_gt.go
- syntax_compare_query_comparator_number_le.go
- syntax_compare_query_comparator_number_lt.go
- syntax_compare_query_comparator_regex.go
- syntax_compare_query_comparator_string_ge.go
- syntax_compare_query_comparator_string_gt.go
- syntax_compare_query_comparator_string_le.go
- syntax_compare_query_comparator_string_lt.go
- syntax_if_comparator.go
- syntax_if_compare_parameter.go
- syntax_if_node.go
- syntax_if_query.go
- syntax_if_query_jsonpath_parameter.go
- syntax_if_subscript.go
- syntax_node_function_aggregate.go
- syntax_node_function_filter.go
- syntax_node_identifier_child_multi.go
- syntax_node_identifier_child_single.go
- syntax_node_identifier_child_wildcard.go
- syntax_node_identifier_current_node.go
- syntax_node_identifier_recursive_child.go
- syntax_node_identifier_root_node.go
- syntax_node_qualifier_filter.go
- syntax_node_qualifier_union.go
- syntax_query_logical_and.go
- syntax_query_logical_not.go
- syntax_query_logical_or.go
- syntax_query_param_current_node.go
- syntax_query_param_current_node_path.go
- syntax_query_param_literal.go
- syntax_query_param_root_node.go
- syntax_query_param_root_node_path.go
- syntax_subscript_index.go
- syntax_subscript_slice_negative_step.go
- syntax_subscript_slice_positive_step.go
- syntax_subscript_wildcard.go
Click to show internal directories.
Click to hide internal directories.