# README [crates.io](https://crates.io/crates/jsonerr2array) [docs.rs](https://docs.rs/jsonerr2array) [github](https://codeberg.org/AlbanMinassian/errorjson) [jsonerr2array](https://crates.io/crates/jsonerr2array) help to transform jsonerr to array json ## Usage ```rust use jsonerr2array::*; fn main() { let result = jsonerr2array(&serde_json::json!({ "meta": {}, "iserr": true, "err": { "code": "ERR001", "message": "message", "payload": { "payload" : 1 }, "origin": { "meta": {}, "iserr": true, "err": { "code": "ERR002", "message": "message", "payload": { "payload" : 2 } } } } })); println!("{:#?}", myjson); } ``` return ```json [ { "meta": {}, "iserr": true, "err": { "code": "ERR001", "message": "message", "payload": { "payload" : 1 } } }, { "meta": {}, "iserr": true, "err": { "code": "ERR002", "message": "message", "payload": { "payload" : 2 } } } ] ``` ## Examples - `cargo run --example basic`