#json #macro #object #bourne #array #14 #proc-macro

macro bournemacro

A json proc-macro for use with the bourne cratecd

1 unstable release

new 0.1.0 Dec 20, 2024

#5 in #14

MIT license

7KB
117 lines

A json macro for the bourne JSON library.

Example

json!(
    {
        "int": 1234,
        "float": 3.14,
        "bool": true,
        "null": null,
        "string": "hello, world",
        "array": [1, 2, 3],
        "object": {
            "one": 1,
            "two": 2,
            "three": 3
        }
    }
)

Dependencies

~240–690KB
~16K SLoC