public final class JsonPatch extends Object implements Function<Json.JValue,Json.JValue>
| Constructor and Description |
|---|
JsonPatch() |
| Modifier and Type | Method and Description |
|---|---|
JsonPatch |
add(String path,
Json.JValue value) |
Json.JValue |
apply(Json.JValue json) |
JsonPatch |
copy(String from,
String path) |
static JsonPatch |
fromArray(Json.JArray array) |
JsonPatch |
move(String from,
String path) |
JsonPatch |
remove(String path) |
JsonPatch |
replace(String path,
Json.JValue value) |
JsonPatch |
test(String path,
Json.JValue value) |
Json.JArray |
toJson() |
public static JsonPatch fromArray(Json.JArray array)
public JsonPatch add(String path, Json.JValue value)
public JsonPatch replace(String path, Json.JValue value)
public JsonPatch test(String path, Json.JValue value)
public Json.JValue apply(Json.JValue json)
apply in interface Function<Json.JValue,Json.JValue>public Json.JArray toJson()
Copyright © 2015–2016. All rights reserved.