All Downloads are FREE. Search and download functionalities are using the official Maven repository.

x-core.4.5.10.source-code.json-pointers.adoc Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR1
Show newest version
== Json Pointers

Vert.x provides an implementation of https://tools.ietf.org/html/rfc6901[Json Pointers from RFC6901].
You can use pointers both for querying and for writing. You can build your {@link io.vertx.core.json.pointer.JsonPointer} using
a string, a URI or manually appending paths:

[source,java]
----
{@link examples.JsonPointerExamples#example1Pointers}
----

After instantiating your pointer, use {@link io.vertx.core.json.pointer.JsonPointer#queryJson(java.lang.Object)} to query
a JSON value. You can update a Json Value using {@link io.vertx.core.json.pointer.JsonPointer#writeJson(java.lang.Object, java.lang.Object)}:

[source,java]
----
{@link examples.JsonPointerExamples#example2Pointers}
----

You can use Vert.x Json Pointer with any object model by providing a custom implementation of {@link io.vertx.core.json.pointer.JsonPointerIterator}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy