# Read Simple JSON file into a struct

- Deserialize
- read_to_string

{% embed include file="src/examples/json/read-simple-json-to-struct/data.json" %}

## Code

{% embed include file="src/examples/json/read-simple-json-to-struct/src/main.rs" %}

## Output

{% embed include file="src/examples/json/read-simple-json-to-struct/out.out" %}

## Cargo.toml

{% embed include file="src/examples/json/read-simple-json-to-struct/Cargo.toml" %}

