Proof of concept:
escodegen.generate({
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ObjectExpression",
"properties": []
},
"property": {
"type": "Identifier",
"name": "property"
}
});
Output:
Compared with astring (note the parens around the empty object):