[][src]Constant serde_syn::config::JSONY

pub const JSONY: Config

A JSON-like configuration. Allows unquoted keys, tuple maps, and typed values. Also uses parentheses for tuples instead of square braces.

{
    "text": "Hello, World!",
    "hashmap": [
        ([1], 1),
        ([1, 2], 2),
        ([1, 2, 3], 3),
    ],
    "oneof": MyVariant {
        "data": ["a", "b", "c"],
    },
}