serde-knowledge-patch

Official

Keep serde/serde_json usage up-to-date

AuthorNevaberry
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Prevents bugs and outdated patterns caused by changes to serde and serde_json APIs by summarizing recent additions and idiomatic replacements since common model training cutoffs. It helps developers avoid deprecated approaches when serializing, deserializing, and constructing JSON in Rust projects.

Core Features & Use Cases

  • Deterministic JSON ordering: guidance on using Map::sort_keys and Value::sort_all_objects to produce stable key order for hashing, diffing, and snapshot tests.
  • Direct deserialization from maps: shows how to deserialize structs from Map<String, Value> or &Map<String, Value> to avoid unnecessary round-trips through Value.
  • Efficient raw literals: documents RawValue associated constants for null, true, and false to avoid allocation and parsing.
  • Ergonomic parsing: explains Map<String, Value> FromStr support to parse object strings more ergonomically.
  • Use cases: deterministic serialization, partial JSON responses, dynamic JSON processing, and performance-sensitive API responses.

Quick Start

Load the serde-knowledge-patch and update code to use Map::sort_keys or Value::sort_all_objects for deterministic output and to prefer Map deserialization and RawValue constants where appropriate.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: serde-knowledge-patch
Download link: https://github.com/Nevaberry/nevaberry-plugins/archive/main.zip#serde-knowledge-patch

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.