0.0.4 • Published 10 years ago

jsing v0.0.4

Weekly downloads
2
License
BSD
Repository
github
Last release
10 years ago

A json tool kit for Node.js. Well, did you find that sometimes console tell you there was certain key is undefined when you want to get or set a json node? if the json object has four level, should I judge it four times? And there are same situations for Create Delete and some other operation. So, all this can be solved by jSing module simply.

you can use npm to install this by

var empty = {};

jsing.push(empty, "hello", {name:"alan"}); jsing.push(empty, "hello", {name:"Bob"});

jsing.push(empty, 123); jsing.push(empty, 456); jsing.push(empty, 789);

jsing.push(empty, {"name": "Alan"}); jsing.push(empty, {"name": "Bob"});

console.log(jsing.pop(empty)); console.log(jsing.pop(empty)); console.log(jsing.pop(empty));

console.log(jsing.pop(empty)); console.log(jsing.pop(empty, "hello")); console.log(jsing.pop(empty, "hello"));

jsing.print_r(empty);

(Chinese support)

json对象的操作工具集,使用递归实现,可操作复杂的节点。json 数组以及排序将是下一个版本的重点。

使用NPM即可安装

0.0.4

10 years ago

0.0.3

11 years ago

0.0.2

11 years ago