fm.finch:fm.finch-json

It is a library designed to help you write easier null-safe code when you work with JSON

Лицензия

Лицензия

Категории

Категории

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

Группа

fm.finch
Идентификатор

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

fm.finch-json
Последняя версия

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

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

fm.finch:fm.finch-json
It is a library designed to help you write easier null-safe code when you work with JSON
Ссылка на сайт

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

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

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

https://github.com/FinchMoscow/json/tree/master

Скачать fm.finch-json

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.springframework : spring-core Необязательный jar 5.2.5.RELEASE

provided (2)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok jar 1.18.12
com.fasterxml.jackson.core : jackson-databind jar 2.10.3

test (1)

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

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

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

FINCH JSON

Finch-Json is a library designed to help you write easier null-safe code. It simplifies the syntax and reduces the amount of code lines in your work.

How it works

It's just a wrapper around the Jackson library and it executes only Jackson's methods.

Usage:

Create or parse JSON:

var createJson = json()
      .set("name", "Ivan")
      .set("addresses", array()
        .add(json()
          .set("street", "Popov pr 1k1")
          .set("city", "Moscow")
        )
      );

var parseJson = Json.parse("{\"name\":"Ivan", \"address\":[{\"street\": \"Popov pr 1k1\"}]}");

Use with Spring

@PostMapping("/{entityId}")
public Json updateEntity(@PathVariable long entityId, @RequestBody Json data) { // data : {"updatedField": "new value"}
    var entity = repository.findById(entityId);
    data.updateObject(entity);
    repository.save(entity);      
}

License

Finch-Json is released under the MIT License.

Special Thanks

fm.finch

FINCH

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

Версия
1.0.0