# Deserialze JSON where one of the fields can be either string or boolean

## Cargo.toml

{% embed include file="src/examples/json/string-or-bool/Cargo.toml" %}

## Data

{% embed include file="src/examples/json/string-or-bool/foo.json" %}

{% embed include file="src/examples/json/string-or-bool/bar.json" %}


## The output

{% embed include file="src/examples/json/string-or-bool/out.out" %}

## The code

{% embed include file="src/examples/json/string-or-bool/src/main.rs" %}

