Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (34 sloc) 1.306 kb
  • make check

someday/maybe

  • pjson-like coloring of JSON output: http://igorgue.com/pjson/

  • fix this in man page (ronn fix?):

    Index: /Users/trentm/tm/json/docs/json.1
    index 45f625f..7230bc5 100644
    --- a/docs/json.1
    +++ b/docs/json.1
    @@ -407,7 +407,7 @@ $ curl \-s http://github\.com/api/v2/json/repos/search/nodejs | json repositorie
         "created_at": "2009/06/26 11:56:01 \-0700",
         "pushed": "2011/09/28 10:27:26 \-0700",
         "forks": 345,
    -\.\.\.
    +\&\.\.\.
     .
     .fi
     .
    

    Tips from mdocml.

  • Support slice indexing into an array: $ echo '["a","b","c"]' | jsondev '[1:]' ["b", "c"]

  • DWIM this in '-e' and '-c' code when the datum is a simple type. Basically s/this/var/ and make 'var=item' the context? This gives possibility to: $ echo '["a","b","c"]' | jsondev -e 'this+=this' ["aa","bb","cc"] $ echo '["a","b","c"]' | jsondev -A -e 'this[3]="d"' ["a","b","c","d"]

  • DWIM the same so this works: $ echo '["a", "b"]' | node6 ../lib/jsontool.js -e 'this.push("c")'

    /Users/trentm/tm/json/lib/jsontool.js:678 vm.runInNewContext(code, datum); ^ TypeError: Object # has no method 'push'

Jump to Line
Something went wrong with that request. Please try again.