| Crates.io | pb-to-json |
| lib.rs | pb-to-json |
| version | 0.1.1 |
| created_at | 2024-04-16 23:22:47.103457+00 |
| updated_at | 2024-04-16 23:34:03.112021+00 |
| description | Simple protocol buffer to JSON conversion |
| homepage | |
| repository | https://github.com/ScriptWare-Software/pb-to-json |
| max_upload_size | |
| id | 1210822 |
| size | 7,405 |
pb_to_json is a Rust library for converting protocol buffer strings to JSON. It provides a simple and efficient way to transform protocol buffer data into a JSON representation. That's it.
Features
To use this basic library, add the following to your Cargo.toml file:
[dependencies]
pb_to_json = "0.1.1"
Documentation is available at docs.rs, you can find it here.
Here's a basic example of how to use pb_to_json:
use pb_to_json::convert_pb_to_json;
fn main() {
let pb_string = r#"
name: "John Doe"
age: 30
city: "New York"
"#;
let json_string = convert_pb_to_json(pb_string);
println!("{}", json_string);
}
{
"name": "John Doe",
"age": "30",
"city": "New York"
}
Found a way to improve this library? Open an issue or submit a pull request to the repository! We're happy to review it.
pb_to_json is licensed under the MIT license.