pass domain properties as json in API
Merge pull request #4839 from dimagi/domain-metadata-json

pass domain properties as json in API