var a = {
    properties:{
        title:{
            type:"String",
            value:"sss"
        },
        content:{
            type:"String",
            value:"555"
        }
    },
    data:{
        abc:123,
        ddd:444,
        fff:"dd"
    },
    methods: {
        abc () {
        },
        cde () {
        }
    }
}
The code above is a text string from js file(got by fs.readFileSync). I need to get the part of 'properties' string by regex and parse it to a json object.
 
    