FLUTTER ECOSYSTEM

pikaju/dart-json-patch

Pacote de utilitários em Dart puro para o padrão JSON Patch.

Capa do projeto dart-json-patch
Stars
19
Forks
10
Último push (UTC)
29 de jul. de 2021
Status do projeto
Ativo
Julien Scholz GitHub avatar
GITHUB User

Julien Scholz ↗

Software engineer and wannabe entrepreneur

Hamburg, Germany
LinguagensDart

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

JSON Patch for Dart

A simple utility package for JSON Patch. Includes a simple diff algorithm as well as the ability to apply JSON Patch operations to a JSON-like Dart object.

Usage

import 'package:json_patch/json_patch.dart';

...

final ops = JsonPatch.diff(oldJson, newJson);
try {
    final patchedJson = JsonPatch.apply(json, patches, strict: false);
} on JsonPatchTestFailedException catch (e) {
    print(e);
}

See the example or the API docs for more information.