Skip to main content

Module json

Module json 

Source
Expand description

The Julia compatibility document.

The conversion is structural: every struct that reaches the document classifies each of its fields as a 0-based internal index (renumbered to 1-based), a renamed field (Julia spells some names in Greek or uppercase), or a value passed through unchanged. The classification destructures the struct exhaustively, so a field added in types.rs fails to compile until it is classified here: a new index field cannot be silently missed, and a value field reusing an index name (t, m, j_ln, …) in another struct is never bumped.

Constants§

SCOPF_SCHEMA

Functions§

to_json
Serialize an internal instance as the 1-based Julia document.
to_json_value
Convert an internal instance to the 1-based Julia document.