         return RESOURCE_TYPE_CUBEMAP;
     else if (fileType == JSON_TYPE_SPRITER_DATA)
         return RESOURCE_TYPE_2D_ANIMATION_SET;
-
-    // extension fileTypes
+    else if (fileType == JSON_TYPE_GENERIC)
+        return RESOURCE_TYPE_GENERIC_JSON;
+
+    // Extension filetypes
     else if (fileType == EXTENSION_TYPE_TTF)
         return RESOURCE_TYPE_FONT;
     else if (fileType == EXTENSION_TYPE_OTF)

        else if (type == XML_TYPE_SPRITER_DATA)
            fileType = XML_TYPE_SPRITER_DATA;
        else
            found = false;
    }
    return found;
}

const int RESOURCE_TYPE_CUBEMAP = 20;
const int RESOURCE_TYPE_PARTICLEEMITTER = 21;
const int RESOURCE_TYPE_2D_ANIMATION_SET = 22;
const int RESOURCE_TYPE_GENERIC_XML = 23;
const int RESOURCE_TYPE_GENERIC_JSON = 24;

// any resource type > 0 is valid
const int NUMBER_OF_VALID_RESOURCE_TYPES = 24;

const StringHash XML_TYPE_SCENE("scene");
const StringHash XML_TYPE_NODE("node");
