python-json-patch¶

python-json-patch is a Python library for applying JSON patches (RFC 6902). Python 3.11+ is supported. Tests are run on both CPython and PyPy.

Installation

$ pip install jsonpatch

Contents

  • Tutorial
    • Creating a Patch
    • Applying a Patch
    • Replacing the Whole Document
    • Paths and Special Characters
    • Custom Path Syntax
    • Dealing with Custom Types
    • String append extension
  • The jsonpatch module
    • AddOperation
    • AppendOperation
    • CopyOperation
    • InvalidJsonPatch
    • JsonPatch
    • JsonPatchConflict
    • JsonPatchException
    • JsonPatchPathNotFound
    • JsonPatchTestFailed
    • JsonPatchWithAppend
    • MoveOperation
    • PatchOperation
    • RemoveOperation
    • ReplaceOperation
    • TestOperation
    • apply_patch()
    • make_patch()
    • multidict()
    • path_join()
    • path_split()
  • Commandline Utilities
    • jsondiff
    • jsonpatch
  • RFC 6902

Indices and tables¶

  • Index

  • Module Index

  • Search Page

python-json-patch

Navigation

  • Tutorial
  • The jsonpatch module
  • Commandline Utilities
  • RFC 6902

Related Topics

  • Documentation overview
    • Next: Tutorial
©2011, Stefan Kögl. | Powered by Sphinx 9.2.0 & Alabaster 1.0.0 | Page source