Convert a JSONPath into dotnotation
npm install jsonpath-to-dot
Convert a JSONPath into dotnotation.
``javascript`
var toDot = require('jsonpath-to-dot');
console.log(toDot('/tags'));
// 'tags'
console.log(toDot('/tags/1'));
// 'tags.1'
console.log(toDot('/tags/blah'));
// 'tags.blah'
``
npm install --save jsonpath-to-dot
```
npm test
MIT