Jsonix Simple Types
HTML
<script src="https://rawgithub.com/highsource/jsonix/master/dist/Jsonix-all.js"></script>
JavaScript
var MyModule = {
elementInfos: [{
elementName: 'comment',
typeInfo: 'String'
}]
};
var context = new Jsonix.Context([MyModule]);
var unmarshaller = context.createUnmarshaller();
var data = unmarshaller.unmarshalString('<comment>Some text</comment>');
console.log(data);