--- JSON-XS/XS.xs 2007/04/03 23:34:17 1.23 +++ JSON-XS/XS.xs 2007/04/03 23:59:04 1.24 @@ -23,7 +23,7 @@ // F_BLESSED? <=> { $__class__$ => } #define F_PRETTY F_INDENT | F_SPACE_BEFORE | F_SPACE_AFTER -#define F_DEFAULT (12UL << S_MAXDEPTH) +#define F_DEFAULT (9UL << S_MAXDEPTH) #define INIT_SIZE 32 // initial scalar size to be allocated #define INDENT_STEP 3 // spaces per indentation level @@ -690,9 +690,9 @@ --dec->cur; if (!ch) - ERR ("unexpected end of string while parsing json string"); + ERR ("unexpected end of string while parsing JSON string"); else - ERR ("invalid character encountered while parsing json string"); + ERR ("invalid character encountered while parsing JSON string"); } } while (cur < buf + SHORT_STRING_LEN); @@ -960,7 +960,7 @@ break; default: - ERR ("malformed json string, neither array, object, number, string or atom"); + ERR ("malformed JSON string, neither array, object, number, string or atom"); break; }