Jsonix Value Property

HTML

<script src="https://rawgithub.com/highsource/jsonix/master/dist/Jsonix-all.js"></script>

JavaScript

var One = {
    name: 'One',
    typeInfos: [{
        type: 'classInfo',
        localName: 'ValueType',
        propertyInfos: [{
            name: 'data',
            type: 'value',
            typeInfo: 'String'
        }]
    }],
    elementInfos: [{
        elementName: 'thing',
        typeInfo: 'One.ValueType'
    }]
};
var context = new Jsonix.Context([One]);
var unmarshaller = context.createUnmarshaller();
var something = unmarshaller.unmarshalString('<thing>Some text.</thing>');
console.log("something:\n");
console.log(something);
console.log("something data value:");
console.log(something.value.data);