Docker query related to YMAL

Can I use JSON instead of YAML for my compose file in Docker?

Thanks in advance,
Konoha