Skip to content

richard-gebbia/clj-json-pointer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-json-pointer

Converts JSON Pointer strings into Clojure paths that work with core functions like get-in, assoc-in, etc.

Usage

=> (require '[clj-json-pointer.core :as jptr])
nil

=> (jptr/to-clj-ptr "/foo/bar/0")
["foo" "bar" 0]

=> (jptr/to-clj-ptr "/foo/bar/0" :keywordize-keys true)
[:foo :bar 0]

License

Copyright © 2018 Richard Gebbia

Distributed under the BSD 2-Clause License

About

Convert JSON Pointers into Clojure paths

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published