Convert Object
{
status: 'success',
name: {
first: 'Glenn',
last: 'Geenen'
}
}
to (Dot notation object)
{
status: 'success',
'name.first': 'Glenn',
'name.last': 'Geenen'
}
var dotify = require('node-dotify');
var obj = {
status: 'success',
name: {
first: 'Glenn',
last: 'Geenen'
}
};
var result = dotify(obj);