     module = null
     isTextFile = !!textFiles[moduleName]
 
+    isJsonFile = !!jsonFiles[moduleName]
+
     # console.log("Resolving", moduleName, fileName)
 
     async.waterfall([
 
       (callback) ->
-        fileLoader(fileName, callback, isTextFile)
+        fileLoader(fileName, callback, isTextFile || isJsonFile)
 
       (file, callback) ->
 

    if (isText)
      textFiles[moduleName] = true

    return moduleName




        if (isTextFile)
          file.stringContents = 'define(function(){ return ' + JSON.stringify(file.stringContents) + '; });'

        if (isJsonFile)
          file.stringContents = 'define(function(){ return JSON.parse(' + JSON.stringify(file.stringContents) + '); });';

        module = new Module(moduleName, file)
        callback(null, file)
