```rust pub struct JSONAsset { data: serde_json::Value, }
impl Asset for JSONAsset { type Data = JSONAsset; }
impl AssetFormat for JSONAsset {
type Input = Vec
#[inline]
fn format(bytes: Self::Input, _: Self::Options) -> Result<Self::Output, Self::Error> {
let data: serde_json::Value = serde_json::from_slice(&*bytes)?;
Ok(JSONAsset { data: data })
}
}
pub type JSONAssetManager
= AssetManager = AssetErrorSystem