1.0.5 • Published 9 years ago

objgrab v1.0.5

Weekly downloads
1
License
ISC
Repository
-
Last release
9 years ago

ObjGrab

Parses objects based on json style selector.

complex selectors are somewhat supported

I created a pipe command line process to demonstrate it.

echo '{"hello":{"World":{"$":["Hi Maa", "Hows Things"]}}}'| ./parse.js 'hello' 'hello.World.$[0]'
using within a node js project is done like so.
var objGrab = require('objgrab');

var jsonObject = JSON.parse('{"hello":{"World":{"$":["Hi Maa", "Hows Things"]}}}');
var selectorString = "hello.World.$[0]";
var parsedValue = objGrab.parse(jsonObject, selectorString);
1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago