Skip to content

Object Manipulation Functions #47

Closed Answered by springcomp
innovate-invent asked this question in Q&A
Discussion options

You must be logged in to vote

Object Manipulation Functions

JEP 13
Author Jonathan Stewmon
Created 21-March-2016
SemVer MINOR
Status Draft
[Discussion #47] #47

Abstract

As a JSON querying language, JMESPath has long needed some functions to manipulate JSON objects.

This JEP introduces built-in functions to extract a list of key/value pairs from a JSON object and conversely converting an array of key/value pairs to a JSON object.

Specification

items

array[array[any]] items(object $obj)

Returns a an array of key value pairs for the provided object $obj. Each pair is a 2-item array with the first item being the key and the second item being the value. This function is the inverse of the from_items()

Replies: 3 comments 19 replies

Comment options

You must be logged in to vote
1 reply
@innovate-invent
Comment options

Comment options

You must be logged in to vote
11 replies
@springcomp
Comment options

@jstewmon
Comment options

@gibson042
Comment options

@springcomp
Comment options

@springcomp
Comment options

Answer selected by springcomp
Comment options

You must be logged in to vote
7 replies
@innovate-invent
Comment options

@springcomp
Comment options

@jstewmon
Comment options

@innovate-invent
Comment options

@jstewmon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
function Function proposal guidelines Discussion of JMESPath Guidelines jep-candidate JEP (Draft) available - please vote!
4 participants