[i290] Language.Clafer.JSONMetaData

refactored out of clafer.hs so that it can be reused in IG