/* sets the error handler for all parsers */
void jsonSetGlobalErrorHandler(void (*errorHandler) (const char*));
-jsonObject* jsonParseFile( char* filename );
+jsonObject* jsonParseFile( const char* filename );
/* ------------------------------------------------------------------------- */
/**
return newObj;
}
-jsonObject* jsonParseFile( char* filename ) {
+jsonObject* jsonParseFile( const char* filename ) {
if(!filename) return NULL;
char* data = file_to_string(filename);
jsonObject* o = jsonParseString(data);