[][src]Function rs_tiled_json::load_map

pub fn load_map(file: &str) -> Result<Map, Error>

It is all exposed through this function--load_map() which takes a filename as a string slice and (hopefully) gives you a tiled_json::Map object in return.

let map = tiled_json::load_map("map1.json");
if map.is_err() {
    /* do some error handling */
    /* for std::io::Error */
}