Module json_with_comments::ser

source ·

Modules§

Functions§

  • Serialize struct S as a minified JSON with comments text of the given file. If you want to serialize as pretty formatted JSONC text, use to_file_pretty instead.
  • Serialize struct S as a pretty formatted JSON with comments text of the given file. If you want to serialize as minified JSONC text, use to_file instead.
  • Serialize struct S as a minified JSON with comments text of the given path. If you want to serialize as pretty formatted JSONC text, use to_path_pretty instead.
  • Serialize struct S as a pretty formatted JSON with comments text of the given path. If you want to serialize as minified JSONC text, use to_path instead.
  • Serialize struct S as minified JSON with comments text. If you want to serialize as pretty formatted JSONC text, use to_string_pretty instead.
  • Serialize struct S as pretty formatted JSON with comments text. If you want to serialize as minified JSONC text, use to_string instead.
  • Serialize struct S as a JSON with comments text of the given writer.