fastC

fastc-core · encode + integer-field decode

fastc-core-json

fastc-core-json is the JSON package in fastc-core. It encodes any fastC value and decodes into struct shapes with integer, string, and boolean fields. Encoding and decoding are pure, so no capability is required.

capability none — pure, does no I/O

What it ships (v0.1.0)

  • Encode any fastC value to JSON
  • Decode into struct shapes (integer, string, bool fields)
  • RFC 8259 conformant output
  • Streaming encoder

When to use it

Config, wire formats, and the fastC diagnostic/agent JSON envelopes.

Example

use json::encode;

fn body(caps: Caps) -> String {
  return encode(payload);
}
fastc-core-json — minimal usage fastc-core-json v0.1.0

Roadmap

Float-field decode and arbitrary-shape decode land in v0.2.

Implements RFC 8259.

Provenance

Like every fastc-core package, fastc-core-json ships with content-hashed, cosign-keyless-signed releases and SLSA L3 provenance. It is vendored, not pulled from a central registry — there is no account to compromise.

See also