json-patch

A Gson-based JSON patch standard implementation.

Лицензия

Лицензия

Категории

Категории

JSON Данные
Группа

Группа

com.tananaev
Идентификатор

Идентификатор

json-patch
Последняя версия

Последняя версия

1.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

json-patch
A Gson-based JSON patch standard implementation.
Ссылка на сайт

Ссылка на сайт

https://github.com/tananaev/json-patch
Система контроля версий

Система контроля версий

https://github.com/tananaev/json-patch

Скачать json-patch

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.tananaev/json-patch/ -->
<dependency>
    <groupId>com.tananaev</groupId>
    <artifactId>json-patch</artifactId>
    <version>1.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.tananaev/json-patch/
implementation 'com.tananaev:json-patch:1.2'
// https://jarcasting.com/artifacts/com.tananaev/json-patch/
implementation ("com.tananaev:json-patch:1.2")
'com.tananaev:json-patch:jar:1.2'
<dependency org="com.tananaev" name="json-patch" rev="1.2">
  <artifact name="json-patch" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.tananaev', module='json-patch', version='1.2')
)
libraryDependencies += "com.tananaev" % "json-patch" % "1.2"
[com.tananaev/json-patch "1.2"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.google.code.gson : gson jar 2.8.5

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

JSON Patch Library - json-patch

Overview

Java implementation of RFC 6902 (JSON Patch) standard. This library is based on Google Gson JSON library.

This project is a fork of the original library developed by C. A. Fitzgerald.

Usage

Include dependency via Gradle:

compile 'com.tananaev:json-patch:1.2'

or Maven:

<dependency>
  <groupId>com.tananaev</groupId>
  <artifactId>json-patch</artifactId>
  <version>1.1</version>
</dependency>

Patch creation

JsonPatchFactory jpf = new JsonPatchFactory();
JsonPatch patch = jpf.create(original, target);

Patch application

 JsonElement target = patch.apply(original);

License

Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Версии библиотеки

Версия
1.2
1.1
1.0