-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the JSON format specified anywhere? #575
Comments
Did you check the json docs here? |
I did not, thanks! It's something, if not full docs, at least. That helps! |
@bodymovin yes,the json docs includes the most of the json means, but some key-value means is excluded from the docs. |
@mrcooder yes, I need to update the doc with newer and missing properties |
Please do update. The lack of mapping for some keys (like in |
Hi @bodymovin , did you get a chance to update the doc? |
Hi @jlongster , did you find any doc about the lottie json file? |
I would need a correct and complete specification of the file format as well, the json schema seems to differ from how actual files are generated |
Just jumping on this, I've been looking for any documentation of the json format for a couple days as well and so far found nothing. |
I've been reverse-engineering the file format, I started from the json schema in here, then fixing things based on actual lottie files and adding looking at lottie-web and rlottie sources. I've turned it into a Python framework which also generates the documentation for the lottie json in a human-readable format. It isn't 100% complete yet but it already supports most of the format. The documentation is here: https://mattia.basaglia.gitlab.io/tgs/group__Lottie.html#details |
@mbasaglia 404 for the above link. |
Ah yeah I had to move it again https://mattbas.gitlab.io/python-lottie/group__Lottie.html#lottie_json |
Doesn't seem like we have official documentation of the format yet. This issue should stay open until such documentation exists. |
There are a few resources available online now: TypeScript def: https://github.com/marcusstenbeck/lottie-types The most easily digestible is the LottieFiles lottie-docs project, which is by the same person who did the python-lottie package (@mbasaglia). |
I can't find anywhere that explains the format of the JSON file. We would like to potential change it at runtime and I was wondering if it was explained anywhere. I'd like to see how all the shapes/layers/paths/etc are encoded into the current format. (I plan to peek at the source code of bodymovin which may help as well)
The text was updated successfully, but these errors were encountered: