Canonical JSON

  • file format 6
  • Rust SDK 1.0 preview

The identity form of any JSON value: members sorted by name at every depth, no whitespace, numbers spelled as PLXI spells them.

On this page, Result<T> is std::result::Result<T, plxi_sdk::Error>.

Functions

fn

canonical_json

Spec §10.3
pub fn canonical_json(value: &Value) -> String
Summary

The PLXI identity form (spec §10.3) of value: object members sorted recursively by name as UTF-8 byte strings, array order kept, no insignificant whitespace, strings and numbers spelled by serde_json (spec §10.2).

Parameters
  • value: &Value
Returns
String

© 2020-2026 Cintile Inc. All Rights Reserved.

Anyone may implement this format. Copying or republishing the text of this specification requires permission from Cintile Inc.

Sections