Created
May 22, 2016 23:10
-
-
Save selfup/12fef2ccb335cf754ab89f529ed016aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[no_mangle] | |
pub extern fn read_json(ro: &'static str) -> String { | |
let roo = ro.to_string(); | |
let json_for_rust: HashMap<String, i32> = json::decode(&roo).unwrap(); | |
let encoded = json::encode(&json_for_rust).unwrap(); | |
encoded | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment