bodymovin-rs is unable to parse any animations with precompositions.
Tested using several animations from https://googlefonts.github.io/noto-emoji-animation/. One animation with a precomp looks like this: (using https://lottiefiles.github.io/lottie-docs/playground/json_editor/):
Error:
Unable to parse lottie JSON: ParseFailed(Error("data did not match any variant of untagged enum Asset", line: 1, column: 80831))
I believe it is referring to this data structure not able to be deserialized
#[derive(Debug, Deserialize)]
#[serde(untagged)]
pub enum Asset {
Image(Image),
PreComp(PreComp),
}
bodymovin-rs is unable to parse any animations with precompositions.
Tested using several animations from https://googlefonts.github.io/noto-emoji-animation/. One animation with a precomp looks like this: (using https://lottiefiles.github.io/lottie-docs/playground/json_editor/):
Error:
I believe it is referring to this data structure not able to be deserialized