Search packages, repositories and app categories

GitHub repositorypikaju/dart-json-patch

dart-json-patch

Pure Dart utility package for the JSON Patch standard.

dart-json-patch project cover
Stars
19
Forks
10
Last push (UTC)
Jul 29, 2021
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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.

Julien Scholz GitHub avatar
GitHub author

Julien Scholz ↗

Software engineer and wannabe entrepreneur

Hamburg, Germany
LanguagesDart

Packages published by this repository

Dependencies used

Dependency list 2 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗