--- parser3/tests/results/256.processed 2010/09/29 03:43:57 1.1
+++ parser3/tests/results/256.processed 2015/09/22 22:41:53 1.11
@@ -1,5 +1,5 @@
Content-Type: text/html
-Content-Length: 3982
+Content-Length: 5893
hash
{
@@ -29,14 +29,16 @@ Content-Length: 3982
}
date
{
-"value":1155866940
+"value":1787022540
}, {
-"value":"Fri, 18 Aug 2006 02:09:00 GMT"
+"value":"Tue, 18 Aug 2026 03:09:00 GMT"
}, {
-"value":"2006-08-18 06:09:00"
+"value":"2026-08-18T06:09:00+3:00"
}, {
-"value":"new Date(1155866940)"
-}
+"value":"2026-08-18 06:09:00"
+}, {
+"value":"new Date(1787022540)"
+}, "exception":"unsupported, must be 'sql-string', 'gmt-string', 'iso-string' or 'unix-timestamp'. That's OK"
table
{
"table_nameless_empty":[],
@@ -58,7 +60,9 @@ Content-Length: 3982
"table_named_3":[
{"c1":"v1","c2":"v2","c3":"v3"},
{"c1":"v4","c2":"v5","c3":"v6"},
-{"c1":"v7","c2":"v8","c3":"v9","3":"v0"}
+{"c1":"v7","c2":"v8","c3":"v9","3":"v0"},
+{"c1":"vA\""},
+{"c1":"vB\\"}
]
}, {
"table_nameless_empty":[],
@@ -80,7 +84,9 @@ Content-Length: 3982
"table_named_3":[
{"c1":"v1","c2":"v2","c3":"v3"},
{"c1":"v4","c2":"v5","c3":"v6"},
- {"c1":"v7","c2":"v8","c3":"v9","3":"v0"}
+ {"c1":"v7","c2":"v8","c3":"v9","3":"v0"},
+ {"c1":"vA\""},
+ {"c1":"vB\\"}
]
}, {
"table_nameless_empty":[
@@ -111,7 +117,9 @@ null,
["c1","c2","c3"],
["v1","v2","v3"],
["v4","v5","v6"],
-["v7","v8","v9","v0"]
+["v7","v8","v9","v0"],
+["vA\""],
+["vB\\"]
]
}, {
"table_nameless_empty":[
@@ -142,29 +150,79 @@ null,
["c1","c2","c3"],
["v1","v2","v3"],
["v4","v5","v6"],
- ["v7","v8","v9","v0"]
+ ["v7","v8","v9","v0"],
+ ["vA\""],
+ ["vB\\"]
]
-}
+}, {
+"table_nameless_empty":[],
+"table_nameless_1":[
+["v1","v2","v3"]
+],
+"table_nameless_2":[
+["v1","v2","v3"],
+["v4","v5","v6"]
+],
+"table_named_empty":[],
+"table_named_1":[
+["v1","v2","v3"]
+],
+"table_named_2":[
+["v1","v2","v3"],
+["v4","v5","v6"]
+],
+"table_named_3":[
+["v1","v2","v3"],
+["v4","v5","v6"],
+["v7","v8","v9","v0"],
+"vA\"",
+"vB\\"
+]
+}, {
+ "table_nameless_empty":[],
+ "table_nameless_1":[
+ ["v1","v2","v3"]
+ ],
+ "table_nameless_2":[
+ ["v1","v2","v3"],
+ ["v4","v5","v6"]
+ ],
+ "table_named_empty":[],
+ "table_named_1":[
+ ["v1","v2","v3"]
+ ],
+ "table_named_2":[
+ ["v1","v2","v3"],
+ ["v4","v5","v6"]
+ ],
+ "table_named_3":[
+ ["v1","v2","v3"],
+ ["v4","v5","v6"],
+ ["v7","v8","v9","v0"],
+ "vA\"",
+ "vB\\"
+ ]
+}, "exception":"unsupported, must be 'array', 'object' or 'compact'. That's OK"
my
{
-"object":"my"
-}
+"object":"my at key object, with 1 option"
+}, "exception":"string, called with invalid option. That's OK", "exception":"string, $.my must be parser method with 3 parameters. That's OK"
file
{
"text":{
"class":"file",
"name":"zigi",
"size":12,
-"content-type":"application\/octet-stream",
"mode":"text",
+"content-type":"application\/octet-stream",
"text":"file-content"
},
"binary":{
"class":"file",
"name":"256.txt",
"size":12,
-"content-type":"application\/octet-stream",
"mode":"binary",
+"content-type":"application\/octet-stream",
"adate":"-value-",
"mdate":"-value-",
"cdate":"-value-",
@@ -184,16 +242,16 @@ null,
"class":"file",
"name":"zigi",
"size":12,
- "content-type":"application\/octet-stream",
"mode":"text",
+ "content-type":"application\/octet-stream",
"base64":"ZmlsZS1jb250ZW50"
},
"binary":{
"class":"file",
"name":"256.txt",
"size":12,
- "content-type":"application\/octet-stream",
"mode":"binary",
+ "content-type":"application\/octet-stream",
"adate":"-value-",
"mdate":"-value-",
"cdate":"-value-",
@@ -212,12 +270,45 @@ null,
"text":{"file":{"name":"zigi", "text":"file-content", "params":"-params-"}},
"binary":{"file":{"name":"256.txt", "text":"file-content", "params":"-params-"}},
"stated":{"file":{"name":"256.txt", "text":"", "params":"-params-"}}
+}, {
+"text":{
+"class":"file",
+"name":"zigi",
+"size":12,
+"mode":"text",
+"content-type":"application\/octet-stream"
+},
+"binary":{
+"class":"file",
+"name":"256.txt",
+"size":12,
+"mode":"binary",
+"content-type":"application\/octet-stream",
+"adate":"-value-",
+"mdate":"-value-",
+"cdate":"-value-"
+},
+"stated":{
+"class":"file",
+"name":"256.txt",
+"size":12,
+"content-type":"application\/octet-stream",
+"adate":"-value-",
+"mdate":"-value-",
+"cdate":"-value-"
}
+}, "exception":"unsupported, must be 'base64', 'text' or 'stat'. That's OK"
image
{
"value":null
}, {
"value":"image []"
-}, Exception. That's OK (Unsupported value's type (image))
+}, "exception":"string, Unsupported value's type (image). That's OK"
hash_with_infinite_recursion
-Exception. That's OK (call canceled - endless json recursion detected)
+"exception":"string, call canceled - endless json recursion detected. That's OK"
+xdoc
+{
+"value":"\n<\/r>\n"
+}, {
+"value":"\n \n<\/r>\n"
+}