 
 _ = require 'underscore-plus'
 fs = require 'fs-plus'
-CSON = require 'cson-parser'
+CSON = null # defer until used
 
 csonCache = null
 


parseObject = (objectPath, contents) ->
  if path.extname(objectPath) is '.cson'
    try
      parsed = CSON.parse(contents)
      stats.misses++

      JSON.stringify(object, undefined, 2)

  stringify: (object, visitor, space = 2) ->
    CSON ?= require 'cson-parser'
    CSON.stringify(object, visitor, space)

  getCacheHits: -> stats.hits
