Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mtdowling/jmespath.clj

JMESPath for Clojure
https://github.com/mtdowling/jmespath.clj

Last synced: 16 days ago
JSON representation

JMESPath for Clojure

Awesome Lists containing this project

README

        

============
jmespath.clj
============

JMESPath (pronounced "jaymz path") allows you to declaratively specify how to
extract elements from a JSON document. *jmespath.clj* allows you to use
JMESPath in Clojure applications with PHP Clojure data structures.

Installation
------------

Add the following to your project's ``project.clj`` file.

.. code-block:: clojure

[jmespath "0.1.0"]

Usage
-----

.. code-block:: clojure

(ns hello-world
(:require jmespath.core :as jmespath))

(jmespath.search "foo.bar" {"foo" {"bar" "baz"}})

The official `JMESPath documentation `_
includes a formal grammar, specification, as well as links to other JMESPath
implementations.