https://github.com/martinlindhe/tiled-parser
Deserializes and serializes Tiled .json files, using serde_json
https://github.com/martinlindhe/tiled-parser
rust-library tiled tiled-map-editor
Last synced: 3 months ago
JSON representation
Deserializes and serializes Tiled .json files, using serde_json
- Host: GitHub
- URL: https://github.com/martinlindhe/tiled-parser
- Owner: martinlindhe
- License: mit
- Created: 2017-07-16T13:11:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-16T23:02:02.000Z (almost 8 years ago)
- Last Synced: 2025-02-28T08:24:41.818Z (4 months ago)
- Topics: rust-library, tiled, tiled-map-editor
- Language: Rust
- Size: 6.84 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tiled-parser
[](https://travis-ci.org/martinlindhe/tiled-parser) [](https://crates.io/crates/tiled-parser)
Deserializes and serializes [Tiled](http://www.mapeditor.org/) .json maps, using serde_json
### Usage
In Cargo.toml:
```tiled-parser = "0.1"```
```rust
extern crate tiled_parser;let data = include_str!("test-data/levels/super_mario.json");
// deserialize
let mut level = tiled_parser::load_level(data);
println!("{:?}", level);level.width = 128;
// serialize
let serialized = serde_json::to_string(&level).unwrap();
println!("serialized = {}", serialized);
```### Documentation
https://docs.rs/tiled-parser/
### License
Under [MIT](LICENSE)