Popularity
1.9
Declining
Activity
0.0
Stable
11
2
1
Monthly Downloads: 32
Programming language: Elixir
License: Apache License 2.0
Tags:
JSON
json_pointer alternatives and similar packages
Based on the "JSON" category.
Alternatively, view json_pointer alternatives based on common mentions on social networks and blogs.
-
jwalk
Helper module for working with Erlang proplists, eep 18, map and mochijson-style JSON representations
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
Do you think we are missing an alternative of json_pointer or a related project?
README
JSON Pointer
An implementation of RFC 6901 which defines a string syntax for identifying a specific value within a JSON document.
Installation
Add a dependency to your project mix.exs
:
def deps do
[{:json_pointer, "~> 0.1.0"}]
end
Usage
document = %{
"key" => "value",
"list" => [1, 2, 3],
"deeply" => %{
"nested" =>
%{"values" => [
%{"x" => 1},
%{"x" => 2}
]
}
}
}
JSONPointer.resolve(document, "/key")
# => {:ok, "value"}
JSONPointer.resolve(document, "/list/1")
# => {:ok, 2}
JSONPointer.resolve(document, "/deeply/nested/values/0")
# => {:ok, %{"x" => 1}}
JSONPointer.resolve(document, "/deeply/nested/values/1/x")
# => {:ok, 2}
JSONPointer.resolve(document, "/list/4")
# => {:error, "index 4 out of bounds in [1, 2, 3]"}
Dependencies
This library works with deserialized documents and does not include a JSON parser.
Contributors
In order of appearance: