refactor(core): refactor CloudFormationLang.toJSON()
#11224
Merged
CloudFormationLang.toJSON()
#11224