 util = require 'util'
 
 OBJECT     = {}
-JSONSTRING = []
+JSONSTRING = {}
 TAGS       = []
 STATS      = {}
 STATS.tags =


findItem = (rows, index, item) ->
  if index + 1 >= rows.length
    JSONSTRING.push item
    STATS.links.count += 1
    findHead rows, index
    return

    findItem rows, index, item

  else if /^#\s[A-Za-zА-Яа-я0-9]/.test(row)
    JSONSTRING[item.name] = item
    STATS.part.count += 1
    index -= 1
    findHead rows, index
