Uses a PEG to parse a content model to JSON.