#json #trait

nightly json-trait-rs

Rust interface (aka trait) to deal with objects as they are JSON objects

10 breaking releases

0.11.0 May 10, 2020
0.9.0 Apr 12, 2020
0.8.0 Mar 23, 2020
0.6.0 Dec 19, 2019
0.4.0 Jul 29, 2019

#1040 in Encoding

39 downloads per month
Used in loader-rs

MIT license

2.5K SLoC


Build on TravisCI Coverage Version



The goal of this repository is to offer rust interfaces (aka traits) to deal with objects as they are JSON objects.

While dealing with JSON objects in rust we tend to use libraries that takes care of the serialisation and desrialisation process as serde-json or json-rust, but depending on the use-case it's possible that we do need only methodologies to traverse the objects that have been created (so [de]serialised) by other libraries.

The main use-case for this type of library, at least at the time of writing, is to offer JSON objects traversing capability to objects that might be initialised by foreign languages (think to other language bindings, ie. via FFI).

Contribution rules

Coming soon


~40K SLoC