Skip to main content

Module json

Module json 

Source
Expand description

Shared JSON output primitives for Foundry CLIs.

Structs§

JsonEnvelope
Stable top-level envelope for complete machine-readable command output.
JsonMessage
Structured diagnostic entry for JSON output.

Enums§

JsonMessageLevel
Severity level for a structured JSON diagnostic.

Constants§

JSON_SCHEMA_VERSION
The current version of Foundry’s top-level JSON output envelope.

Functions§

print_json
Prints a value as compact, single-line JSON to stdout.
print_json_success
Prints a successful JSON envelope to stdout.
print_json_success_with_warnings
Prints a successful JSON envelope with warnings to stdout.