We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It should be possible to write an automatic RON->JSON converter for cases when you have a .ron file and an app that only reads .json files.
Initial discussion on gitter: https://gitter.im/ron-rs/ron?at=598b80f551915d962af79f5d
The text was updated successfully, but these errors were encountered:
Once RON is self-describing (#48), this is a matter of using serde-transcode.
extern crate ron; extern crate serde_json; extern crate serde_transcode; fn main() { let data = r#" Scene( // class name is optional materials: { // this is a map "metal": ( reflectivity: 1.0, ), "plastic": ( reflectivity: 0.5, ), }, entities: [ // this is an array ( name: "hero", material: "metal", ), ( name: "monster", material: "plastic", ), ], ) "#; let mut de = ron::de::Deserializer::from_str(data); let mut ser = serde_json::Serializer::pretty(std::io::stdout()); serde_transcode::transcode(&mut de, &mut ser).unwrap(); }
Sorry, something went wrong.
Merge #53
e4eab5f
53: Add Value and implement deserialize_any r=kvark a=torkleyy Fixes #45 Fixes #48
No branches or pull requests
It should be possible to write an automatic RON->JSON converter for cases when you have a .ron file and an app that only reads .json files.
Initial discussion on gitter: https://gitter.im/ron-rs/ron?at=598b80f551915d962af79f5d
The text was updated successfully, but these errors were encountered: