cangjie-json

Encode and decode JSON data in the Cangjie programming language.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-json
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cangjie-json
Source: https://github.com/SunriseSummer/CangjieDocValidator/tree/main/.github/skills/json
Command: npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-json

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the process of encoding and decoding JSON data within the Cangjie programming language, enabling seamless data exchange and manipulation.

Core Features & Use Cases

  • JSON Parsing & Building: Convert JSON strings to Cangjie's JsonValue and construct JSON objects/arrays.
  • Stream Processing: Efficiently handle large JSON data with JsonWriter and JsonReader.
  • Custom Type Conversion: Easily serialize and deserialize custom Cangjie types to/from JSON.
  • Use Case: Integrate with external APIs by parsing their JSON responses or generating JSON payloads for requests.

Quick Start

Use the cangjie-json skill to parse the JSON string '{"name": "Alice", "age": 30}'.

Frequently Asked Questions about cangjie-json

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse JSON strings in Cangjie?▼

You parse JSON strings in Cangjie by converting them into a `JsonValue` type hierarchy, which enables structured access to underlying data fields and objects.

Can I serialize custom Cangjie types to JSON?▼

Yes, you can serialize custom Cangjie types to JSON by implementing the `JsonSerializable` interface, and deserialize them using the `JsonDeserializable` interface for complex data structures.

How do I handle large JSON data streams in Cangjie?▼

You handle large JSON data streams in Cangjie using `JsonWriter` and `JsonReader` for stream-based serialization and deserialization, ensuring efficient processing of substantial payloads.

Does cangjie-json support building JSON objects programmatically?▼

Yes, cangjie-json supports building JSON structures programmatically by constructing JSON objects and arrays within the Cangjie environment before serialization or transmission.

What is needed to decode JSON API responses in Cangjie?▼

To decode JSON API responses in Cangjie, you need a valid JSON string payload, which this skill parses into a `JsonValue` hierarchy or maps directly to custom types via `JsonDeserializable`.