jx2.baseline 114 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509
  1. J*************************** JSON test parse simple literals ***************
  2. {"memberNum":-0.1}
  3. J*************************** JSON test parse simple with no reviver ***************
  4. JSON Parse__ original=
  5. {"" : 7, "memberNullFirst" : null, "memberNum" : 3, "memberNegNum" : -98765,"memberStr" : "StringJSON", "memberBool" : true , "memberObj" : { "mm" : 1, "mb" : false}, "memberX" : {}, "memberArray" : [33, "StringTst",null,{}], "memberNull" : null}
  6. __Parsed and stringify back=
  7. {"":7,"memberNullFirst":null,"memberNum":3,"memberNegNum":-98765,"memberStr":"StringJSON","memberBool":true,"memberObj":{"mm":1,"mb":false},"memberX":{},"memberArray":[33,"StringTst",null,{}],"memberNull":null}
  8. J*************************** JSON test parse simple with tracing reviver ***************
  9. JSON Parse__ original=
  10. {"" : 7, "memberNullFirst" : null, "memberNum" : 3, "memberNegNum" : -98765,"memberStr" : "StringJSON", "memberBool" : true , "memberObj" : { "mm" : 1, "mb" : false}, "memberX" : {}, "memberArray" : [33, "StringTst",null,{}], "memberNull" : null}
  11. +++in reviver
  12. 7
  13. +++out reviver
  14. +++in reviver
  15. memberNullFirst
  16. null
  17. +++out reviver
  18. +++in reviver
  19. memberNum
  20. 3
  21. +++out reviver
  22. +++in reviver
  23. memberNegNum
  24. -98765
  25. +++out reviver
  26. +++in reviver
  27. memberStr
  28. StringJSON
  29. +++out reviver
  30. +++in reviver
  31. memberBool
  32. true
  33. +++out reviver
  34. +++in reviver
  35. mm
  36. 1
  37. +++out reviver
  38. +++in reviver
  39. mb
  40. false
  41. +++out reviver
  42. +++in reviver
  43. memberObj
  44. [object Object]
  45. +++out reviver
  46. +++in reviver
  47. memberX
  48. [object Object]
  49. +++out reviver
  50. +++in reviver
  51. 0
  52. 33
  53. +++out reviver
  54. +++in reviver
  55. 1
  56. StringTst
  57. +++out reviver
  58. +++in reviver
  59. 2
  60. null
  61. +++out reviver
  62. +++in reviver
  63. 3
  64. [object Object]
  65. +++out reviver
  66. +++in reviver
  67. memberArray
  68. 33,StringTst,,[object Object]
  69. +++out reviver
  70. +++in reviver
  71. memberNull
  72. null
  73. +++out reviver
  74. +++in reviver
  75. [object Object]
  76. +++out reviver
  77. __Parsed with tracing reviver and stringify back =
  78. {"":7,"memberNullFirst":null,"memberNegNum":-98765,"memberStr":"StringJSON","memberBool":99,"memberObj":{"mm":99,"mb":false},"memberX":{},"memberArray":[33,"StringTst",null,{}],"memberNull":null}
  79. J*************************** JSON test parse simple with data restore reviver ***************
  80. JSON Parse__ original=
  81. {"" : 7, "memberNullFirst" : null, "dateMember" : "2008-05-30T07:00:59Z", "memberNum" : 3, "memberStr" : "StringJSON", "memberBool" : true , "memberObj" : { "mm" : 1, "mb" : false}, "memberX" : {}, "memberArray" : [33, "StringTst",null,{}], "memberNull" : null}
  82. __Parsed and stringify back with Date rev =
  83. {"":7,"memberNullFirst":null,"dateMember":"2008-05-30T07:00:59.000Z","memberNum":3,"memberStr":"StringJSON","memberBool":true,"memberObj":{"mm":1,"mb":false},"memberX":{},"memberArray":[33,"StringTst",null,{}],"memberNull":null}
  84. VERIFICATION: restored date year(if this doesn't throw we know the filter worked)=
  85. 2008
  86. J*************************** JSON test parse simple with reviver2: replace(delete) 3.14 by undefined, replace'true' by 99 ***************
  87. JSON Parse__ original=
  88. {"" : 7, "memberNullFirst" : null, "dateMember" : "2008-05-30T07:00:59Z", "memberNum" : 3, "memberStr" : "StringJSON", "memberBool" : true , "memberObj" : { "mm" : 1, "mb" : false}, "memberX" : {}, "memberArray" : [33, "StringTst",null,{}], "memberNull" : null}
  89. __Parsed with reviver2 and stringify back=
  90. {"":7,"memberNullFirst":null,"dateMember":"2008-05-30T07:00:59Z","memberNum":3,"memberStr":"StringJSON","memberBool":99,"memberObj":{"mm":99,"mb":false},"memberX":{},"memberArray":[33,"StringTst",null,{}],"memberNull":null}
  91. %%%%%%%%%%%%%%%%% Matrix Testing %%%%%%%%%%%%%%%%%
  92. J*************************** JSON test stringify - simple, no space, not replacer ***********************
  93. ------ JSON test stringify: String simple ------
  94. "SampleTest"
  95. === Parsed and restringified :
  96. "SampleTest"
  97. === Parsed with reviver and restringified :
  98. "SampleTest"
  99. ------ JSON test stringify: String complex ------
  100. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  101. === Parsed and restringified :
  102. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  103. === Parsed with reviver and restringified :
  104. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  105. ------ JSON test stringify: Number(1) ------
  106. 1
  107. === Parsed and restringified :
  108. 1
  109. === Parsed with reviver and restringified :
  110. 99
  111. ------ JSON test stringify: Number(1234) ------
  112. 12345
  113. === Parsed and restringified :
  114. 12345
  115. === Parsed with reviver and restringified :
  116. 12345
  117. ------ JSON test stringify: Number(3.14) ------
  118. 3.14
  119. === Parsed and restringified :
  120. 3.14
  121. === Parsed with reviver and restringified :
  122. undefined
  123. ------ JSON test stringify: Number(NaN) ------
  124. null
  125. === Parsed and restringified :
  126. null
  127. === Parsed with reviver and restringified :
  128. null
  129. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  130. null
  131. === Parsed and restringified :
  132. null
  133. === Parsed with reviver and restringified :
  134. null
  135. ------ JSON test stringify: bool(true) ------
  136. true
  137. === Parsed and restringified :
  138. true
  139. === Parsed with reviver and restringified :
  140. 99
  141. ------ JSON test stringify: bool(false) ------
  142. false
  143. === Parsed and restringified :
  144. false
  145. === Parsed with reviver and restringified :
  146. false
  147. ------ JSON test stringify: null ------
  148. null
  149. === Parsed and restringified :
  150. null
  151. === Parsed with reviver and restringified :
  152. null
  153. ------ JSON test stringify: undefined ------
  154. undefined
  155. !!Exception: SyntaxError: Invalid character
  156. ------ JSON test stringify: Date(2008, 10, 10) ------
  157. "2008-11-10T08:00:00.000Z"
  158. === Parsed and restringified :
  159. "2008-11-10T08:00:00.000Z"
  160. === Parsed with reviver and restringified :
  161. "2008-11-10T08:00:00.000Z"
  162. ------ JSON test stringify: string in Object ------
  163. "hello"
  164. === Parsed and restringified :
  165. "hello"
  166. === Parsed with reviver and restringified :
  167. "hello"
  168. ------ JSON test stringify: number in Object ------
  169. 33
  170. === Parsed and restringified :
  171. 33
  172. === Parsed with reviver and restringified :
  173. 33
  174. ------ JSON test stringify: bool in Object ------
  175. true
  176. === Parsed and restringified :
  177. true
  178. === Parsed with reviver and restringified :
  179. 99
  180. ------ JSON test stringify: SimpleObject ------
  181. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  182. === Parsed and restringified :
  183. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  184. === Parsed with reviver and restringified :
  185. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  186. ------ JSON test stringify: Object with nested objects and array ------
  187. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":true,"b":false}},"a":{"a":{},"nestedM2":1234,"b":{"a":true,"b":false,"c":3.14}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  188. === Parsed and restringified :
  189. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":true,"b":false}},"a":{"a":{},"nestedM2":1234,"b":{"a":true,"b":false,"c":3.14}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  190. === Parsed with reviver and restringified :
  191. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":99,"b":false}},"a":{"a":{},"nestedM2":1234,"b":{"a":99,"b":false}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  192. ------ JSON test stringify: Simple array ------
  193. ["document.location","foolish"]
  194. === Parsed and restringified :
  195. ["document.location","foolish"]
  196. === Parsed with reviver and restringified :
  197. ["document.location","foolish"]
  198. ------ JSON test stringify: Complex array ------
  199. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array","c":true},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  200. === Parsed and restringified :
  201. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array","c":true},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  202. === Parsed with reviver and restringified :
  203. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array","c":99},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  204. *************************** JSON test stringify: replacer: null space: null ***********************
  205. ------ JSON test stringify: String simple ------
  206. "SampleTest"
  207. === Parsed with no reviver and restringified :
  208. "SampleTest"
  209. === Parsed with reviver2 and restringified :
  210. "SampleTest"
  211. ------ JSON test stringify: String complex ------
  212. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  213. === Parsed with no reviver and restringified :
  214. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  215. === Parsed with reviver2 and restringified :
  216. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  217. ------ JSON test stringify: Number(1) ------
  218. 1
  219. === Parsed with no reviver and restringified :
  220. 1
  221. === Parsed with reviver2 and restringified :
  222. 99
  223. ------ JSON test stringify: Number(1234) ------
  224. 12345
  225. === Parsed with no reviver and restringified :
  226. 12345
  227. === Parsed with reviver2 and restringified :
  228. 12345
  229. ------ JSON test stringify: Number(3.14) ------
  230. 3.14
  231. === Parsed with no reviver and restringified :
  232. 3.14
  233. === Parsed with reviver2 and restringified :
  234. undefined
  235. ------ JSON test stringify: Number(NaN) ------
  236. null
  237. === Parsed with no reviver and restringified :
  238. null
  239. === Parsed with reviver2 and restringified :
  240. null
  241. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  242. null
  243. === Parsed with no reviver and restringified :
  244. null
  245. === Parsed with reviver2 and restringified :
  246. null
  247. ------ JSON test stringify: bool(true) ------
  248. true
  249. === Parsed with no reviver and restringified :
  250. true
  251. === Parsed with reviver2 and restringified :
  252. 99
  253. ------ JSON test stringify: bool(false) ------
  254. false
  255. === Parsed with no reviver and restringified :
  256. false
  257. === Parsed with reviver2 and restringified :
  258. false
  259. ------ JSON test stringify: null ------
  260. null
  261. === Parsed with no reviver and restringified :
  262. null
  263. === Parsed with reviver2 and restringified :
  264. null
  265. ------ JSON test stringify: undefined ------
  266. undefined
  267. !!Exception: SyntaxError: Invalid character
  268. ------ JSON test stringify: Date(2008, 10, 10) ------
  269. "2008-11-10T08:00:00.000Z"
  270. === Parsed with no reviver and restringified :
  271. "2008-11-10T08:00:00.000Z"
  272. === Parsed with reviver2 and restringified :
  273. "2008-11-10T08:00:00.000Z"
  274. ------ JSON test stringify: string in Object ------
  275. "hello"
  276. === Parsed with no reviver and restringified :
  277. "hello"
  278. === Parsed with reviver2 and restringified :
  279. "hello"
  280. ------ JSON test stringify: number in Object ------
  281. 33
  282. === Parsed with no reviver and restringified :
  283. 33
  284. === Parsed with reviver2 and restringified :
  285. 33
  286. ------ JSON test stringify: bool in Object ------
  287. true
  288. === Parsed with no reviver and restringified :
  289. true
  290. === Parsed with reviver2 and restringified :
  291. 99
  292. ------ JSON test stringify: SimpleObject ------
  293. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  294. === Parsed with no reviver and restringified :
  295. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  296. === Parsed with reviver2 and restringified :
  297. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  298. ------ JSON test stringify: Object with nested objects and array ------
  299. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":true,"b":false}},"a":{"a":{},"nestedM2":1234,"b":{"a":true,"b":false,"c":3.14}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  300. === Parsed with no reviver and restringified :
  301. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":true,"b":false}},"a":{"a":{},"nestedM2":1234,"b":{"a":true,"b":false,"c":3.14}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  302. === Parsed with reviver2 and restringified :
  303. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":99,"b":false}},"a":{"a":{},"nestedM2":1234,"b":{"a":99,"b":false}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  304. ------ JSON test stringify: Simple array ------
  305. ["document.location","foolish"]
  306. === Parsed with no reviver and restringified :
  307. ["document.location","foolish"]
  308. === Parsed with reviver2 and restringified :
  309. ["document.location","foolish"]
  310. ------ JSON test stringify: Complex array ------
  311. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array","c":true},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  312. === Parsed with no reviver and restringified :
  313. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array","c":true},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  314. === Parsed with reviver2 and restringified :
  315. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array","c":99},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  316. *************************** JSON test stringify: replacer: null space: number 4 ***********************
  317. ------ JSON test stringify: String simple ------
  318. "SampleTest"
  319. === Parsed with no reviver and restringified :
  320. "SampleTest"
  321. === Parsed with reviver2 and restringified :
  322. "SampleTest"
  323. ------ JSON test stringify: String complex ------
  324. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  325. === Parsed with no reviver and restringified :
  326. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  327. === Parsed with reviver2 and restringified :
  328. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  329. ------ JSON test stringify: Number(1) ------
  330. 1
  331. === Parsed with no reviver and restringified :
  332. 1
  333. === Parsed with reviver2 and restringified :
  334. 99
  335. ------ JSON test stringify: Number(1234) ------
  336. 12345
  337. === Parsed with no reviver and restringified :
  338. 12345
  339. === Parsed with reviver2 and restringified :
  340. 12345
  341. ------ JSON test stringify: Number(3.14) ------
  342. 3.14
  343. === Parsed with no reviver and restringified :
  344. 3.14
  345. === Parsed with reviver2 and restringified :
  346. undefined
  347. ------ JSON test stringify: Number(NaN) ------
  348. null
  349. === Parsed with no reviver and restringified :
  350. null
  351. === Parsed with reviver2 and restringified :
  352. null
  353. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  354. null
  355. === Parsed with no reviver and restringified :
  356. null
  357. === Parsed with reviver2 and restringified :
  358. null
  359. ------ JSON test stringify: bool(true) ------
  360. true
  361. === Parsed with no reviver and restringified :
  362. true
  363. === Parsed with reviver2 and restringified :
  364. 99
  365. ------ JSON test stringify: bool(false) ------
  366. false
  367. === Parsed with no reviver and restringified :
  368. false
  369. === Parsed with reviver2 and restringified :
  370. false
  371. ------ JSON test stringify: null ------
  372. null
  373. === Parsed with no reviver and restringified :
  374. null
  375. === Parsed with reviver2 and restringified :
  376. null
  377. ------ JSON test stringify: undefined ------
  378. undefined
  379. !!Exception: SyntaxError: Invalid character
  380. ------ JSON test stringify: Date(2008, 10, 10) ------
  381. "2008-11-10T08:00:00.000Z"
  382. === Parsed with no reviver and restringified :
  383. "2008-11-10T08:00:00.000Z"
  384. === Parsed with reviver2 and restringified :
  385. "2008-11-10T08:00:00.000Z"
  386. ------ JSON test stringify: string in Object ------
  387. "hello"
  388. === Parsed with no reviver and restringified :
  389. "hello"
  390. === Parsed with reviver2 and restringified :
  391. "hello"
  392. ------ JSON test stringify: number in Object ------
  393. 33
  394. === Parsed with no reviver and restringified :
  395. 33
  396. === Parsed with reviver2 and restringified :
  397. 33
  398. ------ JSON test stringify: bool in Object ------
  399. true
  400. === Parsed with no reviver and restringified :
  401. true
  402. === Parsed with reviver2 and restringified :
  403. 99
  404. ------ JSON test stringify: SimpleObject ------
  405. {
  406. "MemberNo1": "\"data\"",
  407. "dateMember": "2008-04-01T07:00:00.000Z",
  408. "nullMember": null,
  409. "stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  410. }
  411. === Parsed with no reviver and restringified :
  412. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  413. === Parsed with reviver2 and restringified :
  414. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  415. ------ JSON test stringify: Object with nested objects and array ------
  416. {
  417. "MemberNo1": "\"data\"",
  418. "dateMember": "2008-04-01T07:00:00.000Z",
  419. "nullMember": null,
  420. "arr": [
  421. "document.location",
  422. "foolish"
  423. ],
  424. "nested": {
  425. "nestedM1": {},
  426. "nestedM2": 1234,
  427. "nestedM3": {
  428. "a": true,
  429. "b": false
  430. }
  431. },
  432. "a": {
  433. "a": {},
  434. "nestedM2": 1234,
  435. "b": {
  436. "a": true,
  437. "b": false,
  438. "c": 3.14
  439. }
  440. },
  441. "stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  442. }
  443. === Parsed with no reviver and restringified :
  444. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":true,"b":false}},"a":{"a":{},"nestedM2":1234,"b":{"a":true,"b":false,"c":3.14}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  445. === Parsed with reviver2 and restringified :
  446. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":99,"b":false}},"a":{"a":{},"nestedM2":1234,"b":{"a":99,"b":false}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  447. ------ JSON test stringify: Simple array ------
  448. [
  449. "document.location",
  450. "foolish"
  451. ]
  452. === Parsed with no reviver and restringified :
  453. ["document.location","foolish"]
  454. === Parsed with reviver2 and restringified :
  455. ["document.location","foolish"]
  456. ------ JSON test stringify: Complex array ------
  457. [
  458. "document.location",
  459. "foolish",
  460. 12.3,
  461. "2008-10-09T07:00:00.000Z",
  462. {},
  463. null,
  464. {
  465. "intMember": 3,
  466. "strMember": "string_member_in_object"
  467. },
  468. null,
  469. null,
  470. null,
  471. [
  472. "NestedArray_1stParamString",
  473. 3.14,
  474. {
  475. "a": "nested object in array",
  476. "c": true
  477. },
  478. null,
  479. []
  480. ],
  481. "[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  482. ]
  483. === Parsed with no reviver and restringified :
  484. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array","c":true},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  485. === Parsed with reviver2 and restringified :
  486. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array","c":99},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  487. *************************** JSON test stringify: replacer: null space: number 24 ***********************
  488. ------ JSON test stringify: String simple ------
  489. "SampleTest"
  490. === Parsed with no reviver and restringified :
  491. "SampleTest"
  492. === Parsed with reviver2 and restringified :
  493. "SampleTest"
  494. ------ JSON test stringify: String complex ------
  495. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  496. === Parsed with no reviver and restringified :
  497. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  498. === Parsed with reviver2 and restringified :
  499. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  500. ------ JSON test stringify: Number(1) ------
  501. 1
  502. === Parsed with no reviver and restringified :
  503. 1
  504. === Parsed with reviver2 and restringified :
  505. 99
  506. ------ JSON test stringify: Number(1234) ------
  507. 12345
  508. === Parsed with no reviver and restringified :
  509. 12345
  510. === Parsed with reviver2 and restringified :
  511. 12345
  512. ------ JSON test stringify: Number(3.14) ------
  513. 3.14
  514. === Parsed with no reviver and restringified :
  515. 3.14
  516. === Parsed with reviver2 and restringified :
  517. undefined
  518. ------ JSON test stringify: Number(NaN) ------
  519. null
  520. === Parsed with no reviver and restringified :
  521. null
  522. === Parsed with reviver2 and restringified :
  523. null
  524. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  525. null
  526. === Parsed with no reviver and restringified :
  527. null
  528. === Parsed with reviver2 and restringified :
  529. null
  530. ------ JSON test stringify: bool(true) ------
  531. true
  532. === Parsed with no reviver and restringified :
  533. true
  534. === Parsed with reviver2 and restringified :
  535. 99
  536. ------ JSON test stringify: bool(false) ------
  537. false
  538. === Parsed with no reviver and restringified :
  539. false
  540. === Parsed with reviver2 and restringified :
  541. false
  542. ------ JSON test stringify: null ------
  543. null
  544. === Parsed with no reviver and restringified :
  545. null
  546. === Parsed with reviver2 and restringified :
  547. null
  548. ------ JSON test stringify: undefined ------
  549. undefined
  550. !!Exception: SyntaxError: Invalid character
  551. ------ JSON test stringify: Date(2008, 10, 10) ------
  552. "2008-11-10T08:00:00.000Z"
  553. === Parsed with no reviver and restringified :
  554. "2008-11-10T08:00:00.000Z"
  555. === Parsed with reviver2 and restringified :
  556. "2008-11-10T08:00:00.000Z"
  557. ------ JSON test stringify: string in Object ------
  558. "hello"
  559. === Parsed with no reviver and restringified :
  560. "hello"
  561. === Parsed with reviver2 and restringified :
  562. "hello"
  563. ------ JSON test stringify: number in Object ------
  564. 33
  565. === Parsed with no reviver and restringified :
  566. 33
  567. === Parsed with reviver2 and restringified :
  568. 33
  569. ------ JSON test stringify: bool in Object ------
  570. true
  571. === Parsed with no reviver and restringified :
  572. true
  573. === Parsed with reviver2 and restringified :
  574. 99
  575. ------ JSON test stringify: SimpleObject ------
  576. {
  577. "MemberNo1": "\"data\"",
  578. "dateMember": "2008-04-01T07:00:00.000Z",
  579. "nullMember": null,
  580. "stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  581. }
  582. === Parsed with no reviver and restringified :
  583. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  584. === Parsed with reviver2 and restringified :
  585. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  586. ------ JSON test stringify: Object with nested objects and array ------
  587. {
  588. "MemberNo1": "\"data\"",
  589. "dateMember": "2008-04-01T07:00:00.000Z",
  590. "nullMember": null,
  591. "arr": [
  592. "document.location",
  593. "foolish"
  594. ],
  595. "nested": {
  596. "nestedM1": {},
  597. "nestedM2": 1234,
  598. "nestedM3": {
  599. "a": true,
  600. "b": false
  601. }
  602. },
  603. "a": {
  604. "a": {},
  605. "nestedM2": 1234,
  606. "b": {
  607. "a": true,
  608. "b": false,
  609. "c": 3.14
  610. }
  611. },
  612. "stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  613. }
  614. === Parsed with no reviver and restringified :
  615. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":true,"b":false}},"a":{"a":{},"nestedM2":1234,"b":{"a":true,"b":false,"c":3.14}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  616. === Parsed with reviver2 and restringified :
  617. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":99,"b":false}},"a":{"a":{},"nestedM2":1234,"b":{"a":99,"b":false}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  618. ------ JSON test stringify: Simple array ------
  619. [
  620. "document.location",
  621. "foolish"
  622. ]
  623. === Parsed with no reviver and restringified :
  624. ["document.location","foolish"]
  625. === Parsed with reviver2 and restringified :
  626. ["document.location","foolish"]
  627. ------ JSON test stringify: Complex array ------
  628. [
  629. "document.location",
  630. "foolish",
  631. 12.3,
  632. "2008-10-09T07:00:00.000Z",
  633. {},
  634. null,
  635. {
  636. "intMember": 3,
  637. "strMember": "string_member_in_object"
  638. },
  639. null,
  640. null,
  641. null,
  642. [
  643. "NestedArray_1stParamString",
  644. 3.14,
  645. {
  646. "a": "nested object in array",
  647. "c": true
  648. },
  649. null,
  650. []
  651. ],
  652. "[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  653. ]
  654. === Parsed with no reviver and restringified :
  655. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array","c":true},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  656. === Parsed with reviver2 and restringified :
  657. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array","c":99},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  658. *************************** JSON test stringify: replacer: null space: string : ........................ ***********************
  659. ------ JSON test stringify: String simple ------
  660. "SampleTest"
  661. === Parsed with no reviver and restringified :
  662. "SampleTest"
  663. === Parsed with reviver2 and restringified :
  664. "SampleTest"
  665. ------ JSON test stringify: String complex ------
  666. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  667. === Parsed with no reviver and restringified :
  668. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  669. === Parsed with reviver2 and restringified :
  670. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  671. ------ JSON test stringify: Number(1) ------
  672. 1
  673. === Parsed with no reviver and restringified :
  674. 1
  675. === Parsed with reviver2 and restringified :
  676. 99
  677. ------ JSON test stringify: Number(1234) ------
  678. 12345
  679. === Parsed with no reviver and restringified :
  680. 12345
  681. === Parsed with reviver2 and restringified :
  682. 12345
  683. ------ JSON test stringify: Number(3.14) ------
  684. 3.14
  685. === Parsed with no reviver and restringified :
  686. 3.14
  687. === Parsed with reviver2 and restringified :
  688. undefined
  689. ------ JSON test stringify: Number(NaN) ------
  690. null
  691. === Parsed with no reviver and restringified :
  692. null
  693. === Parsed with reviver2 and restringified :
  694. null
  695. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  696. null
  697. === Parsed with no reviver and restringified :
  698. null
  699. === Parsed with reviver2 and restringified :
  700. null
  701. ------ JSON test stringify: bool(true) ------
  702. true
  703. === Parsed with no reviver and restringified :
  704. true
  705. === Parsed with reviver2 and restringified :
  706. 99
  707. ------ JSON test stringify: bool(false) ------
  708. false
  709. === Parsed with no reviver and restringified :
  710. false
  711. === Parsed with reviver2 and restringified :
  712. false
  713. ------ JSON test stringify: null ------
  714. null
  715. === Parsed with no reviver and restringified :
  716. null
  717. === Parsed with reviver2 and restringified :
  718. null
  719. ------ JSON test stringify: undefined ------
  720. undefined
  721. !!Exception: SyntaxError: Invalid character
  722. ------ JSON test stringify: Date(2008, 10, 10) ------
  723. "2008-11-10T08:00:00.000Z"
  724. === Parsed with no reviver and restringified :
  725. "2008-11-10T08:00:00.000Z"
  726. === Parsed with reviver2 and restringified :
  727. "2008-11-10T08:00:00.000Z"
  728. ------ JSON test stringify: string in Object ------
  729. "hello"
  730. === Parsed with no reviver and restringified :
  731. "hello"
  732. === Parsed with reviver2 and restringified :
  733. "hello"
  734. ------ JSON test stringify: number in Object ------
  735. 33
  736. === Parsed with no reviver and restringified :
  737. 33
  738. === Parsed with reviver2 and restringified :
  739. 33
  740. ------ JSON test stringify: bool in Object ------
  741. true
  742. === Parsed with no reviver and restringified :
  743. true
  744. === Parsed with reviver2 and restringified :
  745. 99
  746. ------ JSON test stringify: SimpleObject ------
  747. {
  748. .........."MemberNo1": "\"data\"",
  749. .........."dateMember": "2008-04-01T07:00:00.000Z",
  750. .........."nullMember": null,
  751. .........."stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  752. }
  753. !!Exception: SyntaxError: Invalid character
  754. ------ JSON test stringify: Object with nested objects and array ------
  755. {
  756. .........."MemberNo1": "\"data\"",
  757. .........."dateMember": "2008-04-01T07:00:00.000Z",
  758. .........."nullMember": null,
  759. .........."arr": [
  760. ...................."document.location",
  761. ...................."foolish"
  762. ..........],
  763. .........."nested": {
  764. ...................."nestedM1": {},
  765. ...................."nestedM2": 1234,
  766. ...................."nestedM3": {
  767. .............................."a": true,
  768. .............................."b": false
  769. ....................}
  770. ..........},
  771. .........."a": {
  772. ...................."a": {},
  773. ...................."nestedM2": 1234,
  774. ...................."b": {
  775. .............................."a": true,
  776. .............................."b": false,
  777. .............................."c": 3.14
  778. ....................}
  779. ..........},
  780. .........."stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  781. }
  782. !!Exception: SyntaxError: Invalid character
  783. ------ JSON test stringify: Simple array ------
  784. [
  785. .........."document.location",
  786. .........."foolish"
  787. ]
  788. !!Exception: SyntaxError: Invalid character
  789. ------ JSON test stringify: Complex array ------
  790. [
  791. .........."document.location",
  792. .........."foolish",
  793. ..........12.3,
  794. .........."2008-10-09T07:00:00.000Z",
  795. ..........{},
  796. ..........null,
  797. ..........{
  798. ...................."intMember": 3,
  799. ...................."strMember": "string_member_in_object"
  800. ..........},
  801. ..........null,
  802. ..........null,
  803. ..........null,
  804. ..........[
  805. ...................."NestedArray_1stParamString",
  806. ....................3.14,
  807. ....................{
  808. .............................."a": "nested object in array",
  809. .............................."c": true
  810. ....................},
  811. ....................null,
  812. ....................[]
  813. ..........],
  814. .........."[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  815. ]
  816. !!Exception: SyntaxError: Invalid character
  817. *************************** JSON test stringify: replacer: array replacer: [] space: null ***********************
  818. ------ JSON test stringify: String simple ------
  819. "SampleTest"
  820. === Parsed with no reviver and restringified :
  821. "SampleTest"
  822. === Parsed with reviver2 and restringified :
  823. "SampleTest"
  824. ------ JSON test stringify: String complex ------
  825. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  826. === Parsed with no reviver and restringified :
  827. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  828. === Parsed with reviver2 and restringified :
  829. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  830. ------ JSON test stringify: Number(1) ------
  831. 1
  832. === Parsed with no reviver and restringified :
  833. 1
  834. === Parsed with reviver2 and restringified :
  835. 99
  836. ------ JSON test stringify: Number(1234) ------
  837. 12345
  838. === Parsed with no reviver and restringified :
  839. 12345
  840. === Parsed with reviver2 and restringified :
  841. 12345
  842. ------ JSON test stringify: Number(3.14) ------
  843. 3.14
  844. === Parsed with no reviver and restringified :
  845. 3.14
  846. === Parsed with reviver2 and restringified :
  847. undefined
  848. ------ JSON test stringify: Number(NaN) ------
  849. null
  850. === Parsed with no reviver and restringified :
  851. null
  852. === Parsed with reviver2 and restringified :
  853. null
  854. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  855. null
  856. === Parsed with no reviver and restringified :
  857. null
  858. === Parsed with reviver2 and restringified :
  859. null
  860. ------ JSON test stringify: bool(true) ------
  861. true
  862. === Parsed with no reviver and restringified :
  863. true
  864. === Parsed with reviver2 and restringified :
  865. 99
  866. ------ JSON test stringify: bool(false) ------
  867. false
  868. === Parsed with no reviver and restringified :
  869. false
  870. === Parsed with reviver2 and restringified :
  871. false
  872. ------ JSON test stringify: null ------
  873. null
  874. === Parsed with no reviver and restringified :
  875. null
  876. === Parsed with reviver2 and restringified :
  877. null
  878. ------ JSON test stringify: undefined ------
  879. undefined
  880. !!Exception: SyntaxError: Invalid character
  881. ------ JSON test stringify: Date(2008, 10, 10) ------
  882. "2008-11-10T08:00:00.000Z"
  883. === Parsed with no reviver and restringified :
  884. "2008-11-10T08:00:00.000Z"
  885. === Parsed with reviver2 and restringified :
  886. "2008-11-10T08:00:00.000Z"
  887. ------ JSON test stringify: string in Object ------
  888. "hello"
  889. === Parsed with no reviver and restringified :
  890. "hello"
  891. === Parsed with reviver2 and restringified :
  892. "hello"
  893. ------ JSON test stringify: number in Object ------
  894. 33
  895. === Parsed with no reviver and restringified :
  896. 33
  897. === Parsed with reviver2 and restringified :
  898. 33
  899. ------ JSON test stringify: bool in Object ------
  900. true
  901. === Parsed with no reviver and restringified :
  902. true
  903. === Parsed with reviver2 and restringified :
  904. 99
  905. ------ JSON test stringify: SimpleObject ------
  906. {}
  907. === Parsed with no reviver and restringified :
  908. {}
  909. === Parsed with reviver2 and restringified :
  910. {}
  911. ------ JSON test stringify: Object with nested objects and array ------
  912. {}
  913. === Parsed with no reviver and restringified :
  914. {}
  915. === Parsed with reviver2 and restringified :
  916. {}
  917. ------ JSON test stringify: Simple array ------
  918. ["document.location","foolish"]
  919. === Parsed with no reviver and restringified :
  920. ["document.location","foolish"]
  921. === Parsed with reviver2 and restringified :
  922. ["document.location","foolish"]
  923. ------ JSON test stringify: Complex array ------
  924. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  925. === Parsed with no reviver and restringified :
  926. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  927. === Parsed with reviver2 and restringified :
  928. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",null,{},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  929. *************************** JSON test stringify: replacer: array replacer: [] space: number 4 ***********************
  930. ------ JSON test stringify: String simple ------
  931. "SampleTest"
  932. === Parsed with no reviver and restringified :
  933. "SampleTest"
  934. === Parsed with reviver2 and restringified :
  935. "SampleTest"
  936. ------ JSON test stringify: String complex ------
  937. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  938. === Parsed with no reviver and restringified :
  939. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  940. === Parsed with reviver2 and restringified :
  941. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  942. ------ JSON test stringify: Number(1) ------
  943. 1
  944. === Parsed with no reviver and restringified :
  945. 1
  946. === Parsed with reviver2 and restringified :
  947. 99
  948. ------ JSON test stringify: Number(1234) ------
  949. 12345
  950. === Parsed with no reviver and restringified :
  951. 12345
  952. === Parsed with reviver2 and restringified :
  953. 12345
  954. ------ JSON test stringify: Number(3.14) ------
  955. 3.14
  956. === Parsed with no reviver and restringified :
  957. 3.14
  958. === Parsed with reviver2 and restringified :
  959. undefined
  960. ------ JSON test stringify: Number(NaN) ------
  961. null
  962. === Parsed with no reviver and restringified :
  963. null
  964. === Parsed with reviver2 and restringified :
  965. null
  966. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  967. null
  968. === Parsed with no reviver and restringified :
  969. null
  970. === Parsed with reviver2 and restringified :
  971. null
  972. ------ JSON test stringify: bool(true) ------
  973. true
  974. === Parsed with no reviver and restringified :
  975. true
  976. === Parsed with reviver2 and restringified :
  977. 99
  978. ------ JSON test stringify: bool(false) ------
  979. false
  980. === Parsed with no reviver and restringified :
  981. false
  982. === Parsed with reviver2 and restringified :
  983. false
  984. ------ JSON test stringify: null ------
  985. null
  986. === Parsed with no reviver and restringified :
  987. null
  988. === Parsed with reviver2 and restringified :
  989. null
  990. ------ JSON test stringify: undefined ------
  991. undefined
  992. !!Exception: SyntaxError: Invalid character
  993. ------ JSON test stringify: Date(2008, 10, 10) ------
  994. "2008-11-10T08:00:00.000Z"
  995. === Parsed with no reviver and restringified :
  996. "2008-11-10T08:00:00.000Z"
  997. === Parsed with reviver2 and restringified :
  998. "2008-11-10T08:00:00.000Z"
  999. ------ JSON test stringify: string in Object ------
  1000. "hello"
  1001. === Parsed with no reviver and restringified :
  1002. "hello"
  1003. === Parsed with reviver2 and restringified :
  1004. "hello"
  1005. ------ JSON test stringify: number in Object ------
  1006. 33
  1007. === Parsed with no reviver and restringified :
  1008. 33
  1009. === Parsed with reviver2 and restringified :
  1010. 33
  1011. ------ JSON test stringify: bool in Object ------
  1012. true
  1013. === Parsed with no reviver and restringified :
  1014. true
  1015. === Parsed with reviver2 and restringified :
  1016. 99
  1017. ------ JSON test stringify: SimpleObject ------
  1018. {}
  1019. === Parsed with no reviver and restringified :
  1020. {}
  1021. === Parsed with reviver2 and restringified :
  1022. {}
  1023. ------ JSON test stringify: Object with nested objects and array ------
  1024. {}
  1025. === Parsed with no reviver and restringified :
  1026. {}
  1027. === Parsed with reviver2 and restringified :
  1028. {}
  1029. ------ JSON test stringify: Simple array ------
  1030. [
  1031. "document.location",
  1032. "foolish"
  1033. ]
  1034. === Parsed with no reviver and restringified :
  1035. ["document.location","foolish"]
  1036. === Parsed with reviver2 and restringified :
  1037. ["document.location","foolish"]
  1038. ------ JSON test stringify: Complex array ------
  1039. [
  1040. "document.location",
  1041. "foolish",
  1042. 12.3,
  1043. "2008-10-09T07:00:00.000Z",
  1044. {},
  1045. null,
  1046. {},
  1047. null,
  1048. null,
  1049. null,
  1050. [
  1051. "NestedArray_1stParamString",
  1052. 3.14,
  1053. {},
  1054. null,
  1055. []
  1056. ],
  1057. "[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  1058. ]
  1059. === Parsed with no reviver and restringified :
  1060. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1061. === Parsed with reviver2 and restringified :
  1062. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",null,{},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1063. *************************** JSON test stringify: replacer: array replacer: [] space: number 24 ***********************
  1064. ------ JSON test stringify: String simple ------
  1065. "SampleTest"
  1066. === Parsed with no reviver and restringified :
  1067. "SampleTest"
  1068. === Parsed with reviver2 and restringified :
  1069. "SampleTest"
  1070. ------ JSON test stringify: String complex ------
  1071. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1072. === Parsed with no reviver and restringified :
  1073. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1074. === Parsed with reviver2 and restringified :
  1075. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1076. ------ JSON test stringify: Number(1) ------
  1077. 1
  1078. === Parsed with no reviver and restringified :
  1079. 1
  1080. === Parsed with reviver2 and restringified :
  1081. 99
  1082. ------ JSON test stringify: Number(1234) ------
  1083. 12345
  1084. === Parsed with no reviver and restringified :
  1085. 12345
  1086. === Parsed with reviver2 and restringified :
  1087. 12345
  1088. ------ JSON test stringify: Number(3.14) ------
  1089. 3.14
  1090. === Parsed with no reviver and restringified :
  1091. 3.14
  1092. === Parsed with reviver2 and restringified :
  1093. undefined
  1094. ------ JSON test stringify: Number(NaN) ------
  1095. null
  1096. === Parsed with no reviver and restringified :
  1097. null
  1098. === Parsed with reviver2 and restringified :
  1099. null
  1100. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  1101. null
  1102. === Parsed with no reviver and restringified :
  1103. null
  1104. === Parsed with reviver2 and restringified :
  1105. null
  1106. ------ JSON test stringify: bool(true) ------
  1107. true
  1108. === Parsed with no reviver and restringified :
  1109. true
  1110. === Parsed with reviver2 and restringified :
  1111. 99
  1112. ------ JSON test stringify: bool(false) ------
  1113. false
  1114. === Parsed with no reviver and restringified :
  1115. false
  1116. === Parsed with reviver2 and restringified :
  1117. false
  1118. ------ JSON test stringify: null ------
  1119. null
  1120. === Parsed with no reviver and restringified :
  1121. null
  1122. === Parsed with reviver2 and restringified :
  1123. null
  1124. ------ JSON test stringify: undefined ------
  1125. undefined
  1126. !!Exception: SyntaxError: Invalid character
  1127. ------ JSON test stringify: Date(2008, 10, 10) ------
  1128. "2008-11-10T08:00:00.000Z"
  1129. === Parsed with no reviver and restringified :
  1130. "2008-11-10T08:00:00.000Z"
  1131. === Parsed with reviver2 and restringified :
  1132. "2008-11-10T08:00:00.000Z"
  1133. ------ JSON test stringify: string in Object ------
  1134. "hello"
  1135. === Parsed with no reviver and restringified :
  1136. "hello"
  1137. === Parsed with reviver2 and restringified :
  1138. "hello"
  1139. ------ JSON test stringify: number in Object ------
  1140. 33
  1141. === Parsed with no reviver and restringified :
  1142. 33
  1143. === Parsed with reviver2 and restringified :
  1144. 33
  1145. ------ JSON test stringify: bool in Object ------
  1146. true
  1147. === Parsed with no reviver and restringified :
  1148. true
  1149. === Parsed with reviver2 and restringified :
  1150. 99
  1151. ------ JSON test stringify: SimpleObject ------
  1152. {}
  1153. === Parsed with no reviver and restringified :
  1154. {}
  1155. === Parsed with reviver2 and restringified :
  1156. {}
  1157. ------ JSON test stringify: Object with nested objects and array ------
  1158. {}
  1159. === Parsed with no reviver and restringified :
  1160. {}
  1161. === Parsed with reviver2 and restringified :
  1162. {}
  1163. ------ JSON test stringify: Simple array ------
  1164. [
  1165. "document.location",
  1166. "foolish"
  1167. ]
  1168. === Parsed with no reviver and restringified :
  1169. ["document.location","foolish"]
  1170. === Parsed with reviver2 and restringified :
  1171. ["document.location","foolish"]
  1172. ------ JSON test stringify: Complex array ------
  1173. [
  1174. "document.location",
  1175. "foolish",
  1176. 12.3,
  1177. "2008-10-09T07:00:00.000Z",
  1178. {},
  1179. null,
  1180. {},
  1181. null,
  1182. null,
  1183. null,
  1184. [
  1185. "NestedArray_1stParamString",
  1186. 3.14,
  1187. {},
  1188. null,
  1189. []
  1190. ],
  1191. "[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  1192. ]
  1193. === Parsed with no reviver and restringified :
  1194. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1195. === Parsed with reviver2 and restringified :
  1196. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",null,{},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1197. *************************** JSON test stringify: replacer: array replacer: [] space: string : ........................ ***********************
  1198. ------ JSON test stringify: String simple ------
  1199. "SampleTest"
  1200. === Parsed with no reviver and restringified :
  1201. "SampleTest"
  1202. === Parsed with reviver2 and restringified :
  1203. "SampleTest"
  1204. ------ JSON test stringify: String complex ------
  1205. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1206. === Parsed with no reviver and restringified :
  1207. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1208. === Parsed with reviver2 and restringified :
  1209. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1210. ------ JSON test stringify: Number(1) ------
  1211. 1
  1212. === Parsed with no reviver and restringified :
  1213. 1
  1214. === Parsed with reviver2 and restringified :
  1215. 99
  1216. ------ JSON test stringify: Number(1234) ------
  1217. 12345
  1218. === Parsed with no reviver and restringified :
  1219. 12345
  1220. === Parsed with reviver2 and restringified :
  1221. 12345
  1222. ------ JSON test stringify: Number(3.14) ------
  1223. 3.14
  1224. === Parsed with no reviver and restringified :
  1225. 3.14
  1226. === Parsed with reviver2 and restringified :
  1227. undefined
  1228. ------ JSON test stringify: Number(NaN) ------
  1229. null
  1230. === Parsed with no reviver and restringified :
  1231. null
  1232. === Parsed with reviver2 and restringified :
  1233. null
  1234. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  1235. null
  1236. === Parsed with no reviver and restringified :
  1237. null
  1238. === Parsed with reviver2 and restringified :
  1239. null
  1240. ------ JSON test stringify: bool(true) ------
  1241. true
  1242. === Parsed with no reviver and restringified :
  1243. true
  1244. === Parsed with reviver2 and restringified :
  1245. 99
  1246. ------ JSON test stringify: bool(false) ------
  1247. false
  1248. === Parsed with no reviver and restringified :
  1249. false
  1250. === Parsed with reviver2 and restringified :
  1251. false
  1252. ------ JSON test stringify: null ------
  1253. null
  1254. === Parsed with no reviver and restringified :
  1255. null
  1256. === Parsed with reviver2 and restringified :
  1257. null
  1258. ------ JSON test stringify: undefined ------
  1259. undefined
  1260. !!Exception: SyntaxError: Invalid character
  1261. ------ JSON test stringify: Date(2008, 10, 10) ------
  1262. "2008-11-10T08:00:00.000Z"
  1263. === Parsed with no reviver and restringified :
  1264. "2008-11-10T08:00:00.000Z"
  1265. === Parsed with reviver2 and restringified :
  1266. "2008-11-10T08:00:00.000Z"
  1267. ------ JSON test stringify: string in Object ------
  1268. "hello"
  1269. === Parsed with no reviver and restringified :
  1270. "hello"
  1271. === Parsed with reviver2 and restringified :
  1272. "hello"
  1273. ------ JSON test stringify: number in Object ------
  1274. 33
  1275. === Parsed with no reviver and restringified :
  1276. 33
  1277. === Parsed with reviver2 and restringified :
  1278. 33
  1279. ------ JSON test stringify: bool in Object ------
  1280. true
  1281. === Parsed with no reviver and restringified :
  1282. true
  1283. === Parsed with reviver2 and restringified :
  1284. 99
  1285. ------ JSON test stringify: SimpleObject ------
  1286. {}
  1287. === Parsed with no reviver and restringified :
  1288. {}
  1289. === Parsed with reviver2 and restringified :
  1290. {}
  1291. ------ JSON test stringify: Object with nested objects and array ------
  1292. {}
  1293. === Parsed with no reviver and restringified :
  1294. {}
  1295. === Parsed with reviver2 and restringified :
  1296. {}
  1297. ------ JSON test stringify: Simple array ------
  1298. [
  1299. .........."document.location",
  1300. .........."foolish"
  1301. ]
  1302. !!Exception: SyntaxError: Invalid character
  1303. ------ JSON test stringify: Complex array ------
  1304. [
  1305. .........."document.location",
  1306. .........."foolish",
  1307. ..........12.3,
  1308. .........."2008-10-09T07:00:00.000Z",
  1309. ..........{},
  1310. ..........null,
  1311. ..........{},
  1312. ..........null,
  1313. ..........null,
  1314. ..........null,
  1315. ..........[
  1316. ...................."NestedArray_1stParamString",
  1317. ....................3.14,
  1318. ....................{},
  1319. ....................null,
  1320. ....................[]
  1321. ..........],
  1322. .........."[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  1323. ]
  1324. !!Exception: SyntaxError: Invalid character
  1325. *************************** JSON test stringify: replacer: array replacer: ["a","b"] space: null ***********************
  1326. ------ JSON test stringify: String simple ------
  1327. "SampleTest"
  1328. === Parsed with no reviver and restringified :
  1329. "SampleTest"
  1330. === Parsed with reviver2 and restringified :
  1331. "SampleTest"
  1332. ------ JSON test stringify: String complex ------
  1333. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1334. === Parsed with no reviver and restringified :
  1335. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1336. === Parsed with reviver2 and restringified :
  1337. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1338. ------ JSON test stringify: Number(1) ------
  1339. 1
  1340. === Parsed with no reviver and restringified :
  1341. 1
  1342. === Parsed with reviver2 and restringified :
  1343. 99
  1344. ------ JSON test stringify: Number(1234) ------
  1345. 12345
  1346. === Parsed with no reviver and restringified :
  1347. 12345
  1348. === Parsed with reviver2 and restringified :
  1349. 12345
  1350. ------ JSON test stringify: Number(3.14) ------
  1351. 3.14
  1352. === Parsed with no reviver and restringified :
  1353. 3.14
  1354. === Parsed with reviver2 and restringified :
  1355. undefined
  1356. ------ JSON test stringify: Number(NaN) ------
  1357. null
  1358. === Parsed with no reviver and restringified :
  1359. null
  1360. === Parsed with reviver2 and restringified :
  1361. null
  1362. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  1363. null
  1364. === Parsed with no reviver and restringified :
  1365. null
  1366. === Parsed with reviver2 and restringified :
  1367. null
  1368. ------ JSON test stringify: bool(true) ------
  1369. true
  1370. === Parsed with no reviver and restringified :
  1371. true
  1372. === Parsed with reviver2 and restringified :
  1373. 99
  1374. ------ JSON test stringify: bool(false) ------
  1375. false
  1376. === Parsed with no reviver and restringified :
  1377. false
  1378. === Parsed with reviver2 and restringified :
  1379. false
  1380. ------ JSON test stringify: null ------
  1381. null
  1382. === Parsed with no reviver and restringified :
  1383. null
  1384. === Parsed with reviver2 and restringified :
  1385. null
  1386. ------ JSON test stringify: undefined ------
  1387. undefined
  1388. !!Exception: SyntaxError: Invalid character
  1389. ------ JSON test stringify: Date(2008, 10, 10) ------
  1390. "2008-11-10T08:00:00.000Z"
  1391. === Parsed with no reviver and restringified :
  1392. "2008-11-10T08:00:00.000Z"
  1393. === Parsed with reviver2 and restringified :
  1394. "2008-11-10T08:00:00.000Z"
  1395. ------ JSON test stringify: string in Object ------
  1396. "hello"
  1397. === Parsed with no reviver and restringified :
  1398. "hello"
  1399. === Parsed with reviver2 and restringified :
  1400. "hello"
  1401. ------ JSON test stringify: number in Object ------
  1402. 33
  1403. === Parsed with no reviver and restringified :
  1404. 33
  1405. === Parsed with reviver2 and restringified :
  1406. 33
  1407. ------ JSON test stringify: bool in Object ------
  1408. true
  1409. === Parsed with no reviver and restringified :
  1410. true
  1411. === Parsed with reviver2 and restringified :
  1412. 99
  1413. ------ JSON test stringify: SimpleObject ------
  1414. {}
  1415. === Parsed with no reviver and restringified :
  1416. {}
  1417. === Parsed with reviver2 and restringified :
  1418. {}
  1419. ------ JSON test stringify: Object with nested objects and array ------
  1420. {"a":{"a":{},"b":{"a":true,"b":false}}}
  1421. === Parsed with no reviver and restringified :
  1422. {"a":{"a":{},"b":{"a":true,"b":false}}}
  1423. === Parsed with reviver2 and restringified :
  1424. {"a":{"a":{},"b":{"a":99,"b":false}}}
  1425. ------ JSON test stringify: Simple array ------
  1426. ["document.location","foolish"]
  1427. === Parsed with no reviver and restringified :
  1428. ["document.location","foolish"]
  1429. === Parsed with reviver2 and restringified :
  1430. ["document.location","foolish"]
  1431. ------ JSON test stringify: Complex array ------
  1432. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1433. === Parsed with no reviver and restringified :
  1434. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1435. === Parsed with reviver2 and restringified :
  1436. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1437. *************************** JSON test stringify: replacer: array replacer: ["a","b"] space: number 4 ***********************
  1438. ------ JSON test stringify: String simple ------
  1439. "SampleTest"
  1440. === Parsed with no reviver and restringified :
  1441. "SampleTest"
  1442. === Parsed with reviver2 and restringified :
  1443. "SampleTest"
  1444. ------ JSON test stringify: String complex ------
  1445. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1446. === Parsed with no reviver and restringified :
  1447. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1448. === Parsed with reviver2 and restringified :
  1449. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1450. ------ JSON test stringify: Number(1) ------
  1451. 1
  1452. === Parsed with no reviver and restringified :
  1453. 1
  1454. === Parsed with reviver2 and restringified :
  1455. 99
  1456. ------ JSON test stringify: Number(1234) ------
  1457. 12345
  1458. === Parsed with no reviver and restringified :
  1459. 12345
  1460. === Parsed with reviver2 and restringified :
  1461. 12345
  1462. ------ JSON test stringify: Number(3.14) ------
  1463. 3.14
  1464. === Parsed with no reviver and restringified :
  1465. 3.14
  1466. === Parsed with reviver2 and restringified :
  1467. undefined
  1468. ------ JSON test stringify: Number(NaN) ------
  1469. null
  1470. === Parsed with no reviver and restringified :
  1471. null
  1472. === Parsed with reviver2 and restringified :
  1473. null
  1474. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  1475. null
  1476. === Parsed with no reviver and restringified :
  1477. null
  1478. === Parsed with reviver2 and restringified :
  1479. null
  1480. ------ JSON test stringify: bool(true) ------
  1481. true
  1482. === Parsed with no reviver and restringified :
  1483. true
  1484. === Parsed with reviver2 and restringified :
  1485. 99
  1486. ------ JSON test stringify: bool(false) ------
  1487. false
  1488. === Parsed with no reviver and restringified :
  1489. false
  1490. === Parsed with reviver2 and restringified :
  1491. false
  1492. ------ JSON test stringify: null ------
  1493. null
  1494. === Parsed with no reviver and restringified :
  1495. null
  1496. === Parsed with reviver2 and restringified :
  1497. null
  1498. ------ JSON test stringify: undefined ------
  1499. undefined
  1500. !!Exception: SyntaxError: Invalid character
  1501. ------ JSON test stringify: Date(2008, 10, 10) ------
  1502. "2008-11-10T08:00:00.000Z"
  1503. === Parsed with no reviver and restringified :
  1504. "2008-11-10T08:00:00.000Z"
  1505. === Parsed with reviver2 and restringified :
  1506. "2008-11-10T08:00:00.000Z"
  1507. ------ JSON test stringify: string in Object ------
  1508. "hello"
  1509. === Parsed with no reviver and restringified :
  1510. "hello"
  1511. === Parsed with reviver2 and restringified :
  1512. "hello"
  1513. ------ JSON test stringify: number in Object ------
  1514. 33
  1515. === Parsed with no reviver and restringified :
  1516. 33
  1517. === Parsed with reviver2 and restringified :
  1518. 33
  1519. ------ JSON test stringify: bool in Object ------
  1520. true
  1521. === Parsed with no reviver and restringified :
  1522. true
  1523. === Parsed with reviver2 and restringified :
  1524. 99
  1525. ------ JSON test stringify: SimpleObject ------
  1526. {}
  1527. === Parsed with no reviver and restringified :
  1528. {}
  1529. === Parsed with reviver2 and restringified :
  1530. {}
  1531. ------ JSON test stringify: Object with nested objects and array ------
  1532. {
  1533. "a": {
  1534. "a": {},
  1535. "b": {
  1536. "a": true,
  1537. "b": false
  1538. }
  1539. }
  1540. }
  1541. === Parsed with no reviver and restringified :
  1542. {"a":{"a":{},"b":{"a":true,"b":false}}}
  1543. === Parsed with reviver2 and restringified :
  1544. {"a":{"a":{},"b":{"a":99,"b":false}}}
  1545. ------ JSON test stringify: Simple array ------
  1546. [
  1547. "document.location",
  1548. "foolish"
  1549. ]
  1550. === Parsed with no reviver and restringified :
  1551. ["document.location","foolish"]
  1552. === Parsed with reviver2 and restringified :
  1553. ["document.location","foolish"]
  1554. ------ JSON test stringify: Complex array ------
  1555. [
  1556. "document.location",
  1557. "foolish",
  1558. 12.3,
  1559. "2008-10-09T07:00:00.000Z",
  1560. {},
  1561. null,
  1562. {},
  1563. null,
  1564. null,
  1565. null,
  1566. [
  1567. "NestedArray_1stParamString",
  1568. 3.14,
  1569. {
  1570. "a": "nested object in array"
  1571. },
  1572. null,
  1573. []
  1574. ],
  1575. "[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  1576. ]
  1577. === Parsed with no reviver and restringified :
  1578. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1579. === Parsed with reviver2 and restringified :
  1580. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1581. *************************** JSON test stringify: replacer: array replacer: ["a","b"] space: number 24 ***********************
  1582. ------ JSON test stringify: String simple ------
  1583. "SampleTest"
  1584. === Parsed with no reviver and restringified :
  1585. "SampleTest"
  1586. === Parsed with reviver2 and restringified :
  1587. "SampleTest"
  1588. ------ JSON test stringify: String complex ------
  1589. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1590. === Parsed with no reviver and restringified :
  1591. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1592. === Parsed with reviver2 and restringified :
  1593. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1594. ------ JSON test stringify: Number(1) ------
  1595. 1
  1596. === Parsed with no reviver and restringified :
  1597. 1
  1598. === Parsed with reviver2 and restringified :
  1599. 99
  1600. ------ JSON test stringify: Number(1234) ------
  1601. 12345
  1602. === Parsed with no reviver and restringified :
  1603. 12345
  1604. === Parsed with reviver2 and restringified :
  1605. 12345
  1606. ------ JSON test stringify: Number(3.14) ------
  1607. 3.14
  1608. === Parsed with no reviver and restringified :
  1609. 3.14
  1610. === Parsed with reviver2 and restringified :
  1611. undefined
  1612. ------ JSON test stringify: Number(NaN) ------
  1613. null
  1614. === Parsed with no reviver and restringified :
  1615. null
  1616. === Parsed with reviver2 and restringified :
  1617. null
  1618. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  1619. null
  1620. === Parsed with no reviver and restringified :
  1621. null
  1622. === Parsed with reviver2 and restringified :
  1623. null
  1624. ------ JSON test stringify: bool(true) ------
  1625. true
  1626. === Parsed with no reviver and restringified :
  1627. true
  1628. === Parsed with reviver2 and restringified :
  1629. 99
  1630. ------ JSON test stringify: bool(false) ------
  1631. false
  1632. === Parsed with no reviver and restringified :
  1633. false
  1634. === Parsed with reviver2 and restringified :
  1635. false
  1636. ------ JSON test stringify: null ------
  1637. null
  1638. === Parsed with no reviver and restringified :
  1639. null
  1640. === Parsed with reviver2 and restringified :
  1641. null
  1642. ------ JSON test stringify: undefined ------
  1643. undefined
  1644. !!Exception: SyntaxError: Invalid character
  1645. ------ JSON test stringify: Date(2008, 10, 10) ------
  1646. "2008-11-10T08:00:00.000Z"
  1647. === Parsed with no reviver and restringified :
  1648. "2008-11-10T08:00:00.000Z"
  1649. === Parsed with reviver2 and restringified :
  1650. "2008-11-10T08:00:00.000Z"
  1651. ------ JSON test stringify: string in Object ------
  1652. "hello"
  1653. === Parsed with no reviver and restringified :
  1654. "hello"
  1655. === Parsed with reviver2 and restringified :
  1656. "hello"
  1657. ------ JSON test stringify: number in Object ------
  1658. 33
  1659. === Parsed with no reviver and restringified :
  1660. 33
  1661. === Parsed with reviver2 and restringified :
  1662. 33
  1663. ------ JSON test stringify: bool in Object ------
  1664. true
  1665. === Parsed with no reviver and restringified :
  1666. true
  1667. === Parsed with reviver2 and restringified :
  1668. 99
  1669. ------ JSON test stringify: SimpleObject ------
  1670. {}
  1671. === Parsed with no reviver and restringified :
  1672. {}
  1673. === Parsed with reviver2 and restringified :
  1674. {}
  1675. ------ JSON test stringify: Object with nested objects and array ------
  1676. {
  1677. "a": {
  1678. "a": {},
  1679. "b": {
  1680. "a": true,
  1681. "b": false
  1682. }
  1683. }
  1684. }
  1685. === Parsed with no reviver and restringified :
  1686. {"a":{"a":{},"b":{"a":true,"b":false}}}
  1687. === Parsed with reviver2 and restringified :
  1688. {"a":{"a":{},"b":{"a":99,"b":false}}}
  1689. ------ JSON test stringify: Simple array ------
  1690. [
  1691. "document.location",
  1692. "foolish"
  1693. ]
  1694. === Parsed with no reviver and restringified :
  1695. ["document.location","foolish"]
  1696. === Parsed with reviver2 and restringified :
  1697. ["document.location","foolish"]
  1698. ------ JSON test stringify: Complex array ------
  1699. [
  1700. "document.location",
  1701. "foolish",
  1702. 12.3,
  1703. "2008-10-09T07:00:00.000Z",
  1704. {},
  1705. null,
  1706. {},
  1707. null,
  1708. null,
  1709. null,
  1710. [
  1711. "NestedArray_1stParamString",
  1712. 3.14,
  1713. {
  1714. "a": "nested object in array"
  1715. },
  1716. null,
  1717. []
  1718. ],
  1719. "[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  1720. ]
  1721. === Parsed with no reviver and restringified :
  1722. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1723. === Parsed with reviver2 and restringified :
  1724. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1725. *************************** JSON test stringify: replacer: array replacer: ["a","b"] space: string : ........................ ***********************
  1726. ------ JSON test stringify: String simple ------
  1727. "SampleTest"
  1728. === Parsed with no reviver and restringified :
  1729. "SampleTest"
  1730. === Parsed with reviver2 and restringified :
  1731. "SampleTest"
  1732. ------ JSON test stringify: String complex ------
  1733. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1734. === Parsed with no reviver and restringified :
  1735. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1736. === Parsed with reviver2 and restringified :
  1737. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1738. ------ JSON test stringify: Number(1) ------
  1739. 1
  1740. === Parsed with no reviver and restringified :
  1741. 1
  1742. === Parsed with reviver2 and restringified :
  1743. 99
  1744. ------ JSON test stringify: Number(1234) ------
  1745. 12345
  1746. === Parsed with no reviver and restringified :
  1747. 12345
  1748. === Parsed with reviver2 and restringified :
  1749. 12345
  1750. ------ JSON test stringify: Number(3.14) ------
  1751. 3.14
  1752. === Parsed with no reviver and restringified :
  1753. 3.14
  1754. === Parsed with reviver2 and restringified :
  1755. undefined
  1756. ------ JSON test stringify: Number(NaN) ------
  1757. null
  1758. === Parsed with no reviver and restringified :
  1759. null
  1760. === Parsed with reviver2 and restringified :
  1761. null
  1762. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  1763. null
  1764. === Parsed with no reviver and restringified :
  1765. null
  1766. === Parsed with reviver2 and restringified :
  1767. null
  1768. ------ JSON test stringify: bool(true) ------
  1769. true
  1770. === Parsed with no reviver and restringified :
  1771. true
  1772. === Parsed with reviver2 and restringified :
  1773. 99
  1774. ------ JSON test stringify: bool(false) ------
  1775. false
  1776. === Parsed with no reviver and restringified :
  1777. false
  1778. === Parsed with reviver2 and restringified :
  1779. false
  1780. ------ JSON test stringify: null ------
  1781. null
  1782. === Parsed with no reviver and restringified :
  1783. null
  1784. === Parsed with reviver2 and restringified :
  1785. null
  1786. ------ JSON test stringify: undefined ------
  1787. undefined
  1788. !!Exception: SyntaxError: Invalid character
  1789. ------ JSON test stringify: Date(2008, 10, 10) ------
  1790. "2008-11-10T08:00:00.000Z"
  1791. === Parsed with no reviver and restringified :
  1792. "2008-11-10T08:00:00.000Z"
  1793. === Parsed with reviver2 and restringified :
  1794. "2008-11-10T08:00:00.000Z"
  1795. ------ JSON test stringify: string in Object ------
  1796. "hello"
  1797. === Parsed with no reviver and restringified :
  1798. "hello"
  1799. === Parsed with reviver2 and restringified :
  1800. "hello"
  1801. ------ JSON test stringify: number in Object ------
  1802. 33
  1803. === Parsed with no reviver and restringified :
  1804. 33
  1805. === Parsed with reviver2 and restringified :
  1806. 33
  1807. ------ JSON test stringify: bool in Object ------
  1808. true
  1809. === Parsed with no reviver and restringified :
  1810. true
  1811. === Parsed with reviver2 and restringified :
  1812. 99
  1813. ------ JSON test stringify: SimpleObject ------
  1814. {}
  1815. === Parsed with no reviver and restringified :
  1816. {}
  1817. === Parsed with reviver2 and restringified :
  1818. {}
  1819. ------ JSON test stringify: Object with nested objects and array ------
  1820. {
  1821. .........."a": {
  1822. ...................."a": {},
  1823. ...................."b": {
  1824. .............................."a": true,
  1825. .............................."b": false
  1826. ....................}
  1827. ..........}
  1828. }
  1829. !!Exception: SyntaxError: Invalid character
  1830. ------ JSON test stringify: Simple array ------
  1831. [
  1832. .........."document.location",
  1833. .........."foolish"
  1834. ]
  1835. !!Exception: SyntaxError: Invalid character
  1836. ------ JSON test stringify: Complex array ------
  1837. [
  1838. .........."document.location",
  1839. .........."foolish",
  1840. ..........12.3,
  1841. .........."2008-10-09T07:00:00.000Z",
  1842. ..........{},
  1843. ..........null,
  1844. ..........{},
  1845. ..........null,
  1846. ..........null,
  1847. ..........null,
  1848. ..........[
  1849. ...................."NestedArray_1stParamString",
  1850. ....................3.14,
  1851. ....................{
  1852. .............................."a": "nested object in array"
  1853. ....................},
  1854. ....................null,
  1855. ....................[]
  1856. ..........],
  1857. .........."[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  1858. ]
  1859. !!Exception: SyntaxError: Invalid character
  1860. *************************** JSON test stringify: replacer: array replacer: ["a","b","a","a"] space: null ***********************
  1861. ------ JSON test stringify: String simple ------
  1862. "SampleTest"
  1863. === Parsed with no reviver and restringified :
  1864. "SampleTest"
  1865. === Parsed with reviver2 and restringified :
  1866. "SampleTest"
  1867. ------ JSON test stringify: String complex ------
  1868. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1869. === Parsed with no reviver and restringified :
  1870. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1871. === Parsed with reviver2 and restringified :
  1872. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1873. ------ JSON test stringify: Number(1) ------
  1874. 1
  1875. === Parsed with no reviver and restringified :
  1876. 1
  1877. === Parsed with reviver2 and restringified :
  1878. 99
  1879. ------ JSON test stringify: Number(1234) ------
  1880. 12345
  1881. === Parsed with no reviver and restringified :
  1882. 12345
  1883. === Parsed with reviver2 and restringified :
  1884. 12345
  1885. ------ JSON test stringify: Number(3.14) ------
  1886. 3.14
  1887. === Parsed with no reviver and restringified :
  1888. 3.14
  1889. === Parsed with reviver2 and restringified :
  1890. undefined
  1891. ------ JSON test stringify: Number(NaN) ------
  1892. null
  1893. === Parsed with no reviver and restringified :
  1894. null
  1895. === Parsed with reviver2 and restringified :
  1896. null
  1897. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  1898. null
  1899. === Parsed with no reviver and restringified :
  1900. null
  1901. === Parsed with reviver2 and restringified :
  1902. null
  1903. ------ JSON test stringify: bool(true) ------
  1904. true
  1905. === Parsed with no reviver and restringified :
  1906. true
  1907. === Parsed with reviver2 and restringified :
  1908. 99
  1909. ------ JSON test stringify: bool(false) ------
  1910. false
  1911. === Parsed with no reviver and restringified :
  1912. false
  1913. === Parsed with reviver2 and restringified :
  1914. false
  1915. ------ JSON test stringify: null ------
  1916. null
  1917. === Parsed with no reviver and restringified :
  1918. null
  1919. === Parsed with reviver2 and restringified :
  1920. null
  1921. ------ JSON test stringify: undefined ------
  1922. undefined
  1923. !!Exception: SyntaxError: Invalid character
  1924. ------ JSON test stringify: Date(2008, 10, 10) ------
  1925. "2008-11-10T08:00:00.000Z"
  1926. === Parsed with no reviver and restringified :
  1927. "2008-11-10T08:00:00.000Z"
  1928. === Parsed with reviver2 and restringified :
  1929. "2008-11-10T08:00:00.000Z"
  1930. ------ JSON test stringify: string in Object ------
  1931. "hello"
  1932. === Parsed with no reviver and restringified :
  1933. "hello"
  1934. === Parsed with reviver2 and restringified :
  1935. "hello"
  1936. ------ JSON test stringify: number in Object ------
  1937. 33
  1938. === Parsed with no reviver and restringified :
  1939. 33
  1940. === Parsed with reviver2 and restringified :
  1941. 33
  1942. ------ JSON test stringify: bool in Object ------
  1943. true
  1944. === Parsed with no reviver and restringified :
  1945. true
  1946. === Parsed with reviver2 and restringified :
  1947. 99
  1948. ------ JSON test stringify: SimpleObject ------
  1949. {}
  1950. === Parsed with no reviver and restringified :
  1951. {}
  1952. === Parsed with reviver2 and restringified :
  1953. {}
  1954. ------ JSON test stringify: Object with nested objects and array ------
  1955. {"a":{"a":{},"b":{"a":true,"b":false}}}
  1956. === Parsed with no reviver and restringified :
  1957. {"a":{"a":{},"b":{"a":true,"b":false}}}
  1958. === Parsed with reviver2 and restringified :
  1959. {"a":{"a":{},"b":{"a":99,"b":false}}}
  1960. ------ JSON test stringify: Simple array ------
  1961. ["document.location","foolish"]
  1962. === Parsed with no reviver and restringified :
  1963. ["document.location","foolish"]
  1964. === Parsed with reviver2 and restringified :
  1965. ["document.location","foolish"]
  1966. ------ JSON test stringify: Complex array ------
  1967. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1968. === Parsed with no reviver and restringified :
  1969. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1970. === Parsed with reviver2 and restringified :
  1971. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  1972. *************************** JSON test stringify: replacer: array replacer: ["a","b","a","a"] space: number 4 ***********************
  1973. ------ JSON test stringify: String simple ------
  1974. "SampleTest"
  1975. === Parsed with no reviver and restringified :
  1976. "SampleTest"
  1977. === Parsed with reviver2 and restringified :
  1978. "SampleTest"
  1979. ------ JSON test stringify: String complex ------
  1980. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1981. === Parsed with no reviver and restringified :
  1982. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1983. === Parsed with reviver2 and restringified :
  1984. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  1985. ------ JSON test stringify: Number(1) ------
  1986. 1
  1987. === Parsed with no reviver and restringified :
  1988. 1
  1989. === Parsed with reviver2 and restringified :
  1990. 99
  1991. ------ JSON test stringify: Number(1234) ------
  1992. 12345
  1993. === Parsed with no reviver and restringified :
  1994. 12345
  1995. === Parsed with reviver2 and restringified :
  1996. 12345
  1997. ------ JSON test stringify: Number(3.14) ------
  1998. 3.14
  1999. === Parsed with no reviver and restringified :
  2000. 3.14
  2001. === Parsed with reviver2 and restringified :
  2002. undefined
  2003. ------ JSON test stringify: Number(NaN) ------
  2004. null
  2005. === Parsed with no reviver and restringified :
  2006. null
  2007. === Parsed with reviver2 and restringified :
  2008. null
  2009. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  2010. null
  2011. === Parsed with no reviver and restringified :
  2012. null
  2013. === Parsed with reviver2 and restringified :
  2014. null
  2015. ------ JSON test stringify: bool(true) ------
  2016. true
  2017. === Parsed with no reviver and restringified :
  2018. true
  2019. === Parsed with reviver2 and restringified :
  2020. 99
  2021. ------ JSON test stringify: bool(false) ------
  2022. false
  2023. === Parsed with no reviver and restringified :
  2024. false
  2025. === Parsed with reviver2 and restringified :
  2026. false
  2027. ------ JSON test stringify: null ------
  2028. null
  2029. === Parsed with no reviver and restringified :
  2030. null
  2031. === Parsed with reviver2 and restringified :
  2032. null
  2033. ------ JSON test stringify: undefined ------
  2034. undefined
  2035. !!Exception: SyntaxError: Invalid character
  2036. ------ JSON test stringify: Date(2008, 10, 10) ------
  2037. "2008-11-10T08:00:00.000Z"
  2038. === Parsed with no reviver and restringified :
  2039. "2008-11-10T08:00:00.000Z"
  2040. === Parsed with reviver2 and restringified :
  2041. "2008-11-10T08:00:00.000Z"
  2042. ------ JSON test stringify: string in Object ------
  2043. "hello"
  2044. === Parsed with no reviver and restringified :
  2045. "hello"
  2046. === Parsed with reviver2 and restringified :
  2047. "hello"
  2048. ------ JSON test stringify: number in Object ------
  2049. 33
  2050. === Parsed with no reviver and restringified :
  2051. 33
  2052. === Parsed with reviver2 and restringified :
  2053. 33
  2054. ------ JSON test stringify: bool in Object ------
  2055. true
  2056. === Parsed with no reviver and restringified :
  2057. true
  2058. === Parsed with reviver2 and restringified :
  2059. 99
  2060. ------ JSON test stringify: SimpleObject ------
  2061. {}
  2062. === Parsed with no reviver and restringified :
  2063. {}
  2064. === Parsed with reviver2 and restringified :
  2065. {}
  2066. ------ JSON test stringify: Object with nested objects and array ------
  2067. {
  2068. "a": {
  2069. "a": {},
  2070. "b": {
  2071. "a": true,
  2072. "b": false
  2073. }
  2074. }
  2075. }
  2076. === Parsed with no reviver and restringified :
  2077. {"a":{"a":{},"b":{"a":true,"b":false}}}
  2078. === Parsed with reviver2 and restringified :
  2079. {"a":{"a":{},"b":{"a":99,"b":false}}}
  2080. ------ JSON test stringify: Simple array ------
  2081. [
  2082. "document.location",
  2083. "foolish"
  2084. ]
  2085. === Parsed with no reviver and restringified :
  2086. ["document.location","foolish"]
  2087. === Parsed with reviver2 and restringified :
  2088. ["document.location","foolish"]
  2089. ------ JSON test stringify: Complex array ------
  2090. [
  2091. "document.location",
  2092. "foolish",
  2093. 12.3,
  2094. "2008-10-09T07:00:00.000Z",
  2095. {},
  2096. null,
  2097. {},
  2098. null,
  2099. null,
  2100. null,
  2101. [
  2102. "NestedArray_1stParamString",
  2103. 3.14,
  2104. {
  2105. "a": "nested object in array"
  2106. },
  2107. null,
  2108. []
  2109. ],
  2110. "[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  2111. ]
  2112. === Parsed with no reviver and restringified :
  2113. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  2114. === Parsed with reviver2 and restringified :
  2115. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  2116. *************************** JSON test stringify: replacer: array replacer: ["a","b","a","a"] space: number 24 ***********************
  2117. ------ JSON test stringify: String simple ------
  2118. "SampleTest"
  2119. === Parsed with no reviver and restringified :
  2120. "SampleTest"
  2121. === Parsed with reviver2 and restringified :
  2122. "SampleTest"
  2123. ------ JSON test stringify: String complex ------
  2124. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2125. === Parsed with no reviver and restringified :
  2126. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2127. === Parsed with reviver2 and restringified :
  2128. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2129. ------ JSON test stringify: Number(1) ------
  2130. 1
  2131. === Parsed with no reviver and restringified :
  2132. 1
  2133. === Parsed with reviver2 and restringified :
  2134. 99
  2135. ------ JSON test stringify: Number(1234) ------
  2136. 12345
  2137. === Parsed with no reviver and restringified :
  2138. 12345
  2139. === Parsed with reviver2 and restringified :
  2140. 12345
  2141. ------ JSON test stringify: Number(3.14) ------
  2142. 3.14
  2143. === Parsed with no reviver and restringified :
  2144. 3.14
  2145. === Parsed with reviver2 and restringified :
  2146. undefined
  2147. ------ JSON test stringify: Number(NaN) ------
  2148. null
  2149. === Parsed with no reviver and restringified :
  2150. null
  2151. === Parsed with reviver2 and restringified :
  2152. null
  2153. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  2154. null
  2155. === Parsed with no reviver and restringified :
  2156. null
  2157. === Parsed with reviver2 and restringified :
  2158. null
  2159. ------ JSON test stringify: bool(true) ------
  2160. true
  2161. === Parsed with no reviver and restringified :
  2162. true
  2163. === Parsed with reviver2 and restringified :
  2164. 99
  2165. ------ JSON test stringify: bool(false) ------
  2166. false
  2167. === Parsed with no reviver and restringified :
  2168. false
  2169. === Parsed with reviver2 and restringified :
  2170. false
  2171. ------ JSON test stringify: null ------
  2172. null
  2173. === Parsed with no reviver and restringified :
  2174. null
  2175. === Parsed with reviver2 and restringified :
  2176. null
  2177. ------ JSON test stringify: undefined ------
  2178. undefined
  2179. !!Exception: SyntaxError: Invalid character
  2180. ------ JSON test stringify: Date(2008, 10, 10) ------
  2181. "2008-11-10T08:00:00.000Z"
  2182. === Parsed with no reviver and restringified :
  2183. "2008-11-10T08:00:00.000Z"
  2184. === Parsed with reviver2 and restringified :
  2185. "2008-11-10T08:00:00.000Z"
  2186. ------ JSON test stringify: string in Object ------
  2187. "hello"
  2188. === Parsed with no reviver and restringified :
  2189. "hello"
  2190. === Parsed with reviver2 and restringified :
  2191. "hello"
  2192. ------ JSON test stringify: number in Object ------
  2193. 33
  2194. === Parsed with no reviver and restringified :
  2195. 33
  2196. === Parsed with reviver2 and restringified :
  2197. 33
  2198. ------ JSON test stringify: bool in Object ------
  2199. true
  2200. === Parsed with no reviver and restringified :
  2201. true
  2202. === Parsed with reviver2 and restringified :
  2203. 99
  2204. ------ JSON test stringify: SimpleObject ------
  2205. {}
  2206. === Parsed with no reviver and restringified :
  2207. {}
  2208. === Parsed with reviver2 and restringified :
  2209. {}
  2210. ------ JSON test stringify: Object with nested objects and array ------
  2211. {
  2212. "a": {
  2213. "a": {},
  2214. "b": {
  2215. "a": true,
  2216. "b": false
  2217. }
  2218. }
  2219. }
  2220. === Parsed with no reviver and restringified :
  2221. {"a":{"a":{},"b":{"a":true,"b":false}}}
  2222. === Parsed with reviver2 and restringified :
  2223. {"a":{"a":{},"b":{"a":99,"b":false}}}
  2224. ------ JSON test stringify: Simple array ------
  2225. [
  2226. "document.location",
  2227. "foolish"
  2228. ]
  2229. === Parsed with no reviver and restringified :
  2230. ["document.location","foolish"]
  2231. === Parsed with reviver2 and restringified :
  2232. ["document.location","foolish"]
  2233. ------ JSON test stringify: Complex array ------
  2234. [
  2235. "document.location",
  2236. "foolish",
  2237. 12.3,
  2238. "2008-10-09T07:00:00.000Z",
  2239. {},
  2240. null,
  2241. {},
  2242. null,
  2243. null,
  2244. null,
  2245. [
  2246. "NestedArray_1stParamString",
  2247. 3.14,
  2248. {
  2249. "a": "nested object in array"
  2250. },
  2251. null,
  2252. []
  2253. ],
  2254. "[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  2255. ]
  2256. === Parsed with no reviver and restringified :
  2257. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  2258. === Parsed with reviver2 and restringified :
  2259. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array"},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  2260. *************************** JSON test stringify: replacer: array replacer: ["a","b","a","a"] space: string : ........................ ***********************
  2261. ------ JSON test stringify: String simple ------
  2262. "SampleTest"
  2263. === Parsed with no reviver and restringified :
  2264. "SampleTest"
  2265. === Parsed with reviver2 and restringified :
  2266. "SampleTest"
  2267. ------ JSON test stringify: String complex ------
  2268. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2269. === Parsed with no reviver and restringified :
  2270. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2271. === Parsed with reviver2 and restringified :
  2272. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2273. ------ JSON test stringify: Number(1) ------
  2274. 1
  2275. === Parsed with no reviver and restringified :
  2276. 1
  2277. === Parsed with reviver2 and restringified :
  2278. 99
  2279. ------ JSON test stringify: Number(1234) ------
  2280. 12345
  2281. === Parsed with no reviver and restringified :
  2282. 12345
  2283. === Parsed with reviver2 and restringified :
  2284. 12345
  2285. ------ JSON test stringify: Number(3.14) ------
  2286. 3.14
  2287. === Parsed with no reviver and restringified :
  2288. 3.14
  2289. === Parsed with reviver2 and restringified :
  2290. undefined
  2291. ------ JSON test stringify: Number(NaN) ------
  2292. null
  2293. === Parsed with no reviver and restringified :
  2294. null
  2295. === Parsed with reviver2 and restringified :
  2296. null
  2297. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  2298. null
  2299. === Parsed with no reviver and restringified :
  2300. null
  2301. === Parsed with reviver2 and restringified :
  2302. null
  2303. ------ JSON test stringify: bool(true) ------
  2304. true
  2305. === Parsed with no reviver and restringified :
  2306. true
  2307. === Parsed with reviver2 and restringified :
  2308. 99
  2309. ------ JSON test stringify: bool(false) ------
  2310. false
  2311. === Parsed with no reviver and restringified :
  2312. false
  2313. === Parsed with reviver2 and restringified :
  2314. false
  2315. ------ JSON test stringify: null ------
  2316. null
  2317. === Parsed with no reviver and restringified :
  2318. null
  2319. === Parsed with reviver2 and restringified :
  2320. null
  2321. ------ JSON test stringify: undefined ------
  2322. undefined
  2323. !!Exception: SyntaxError: Invalid character
  2324. ------ JSON test stringify: Date(2008, 10, 10) ------
  2325. "2008-11-10T08:00:00.000Z"
  2326. === Parsed with no reviver and restringified :
  2327. "2008-11-10T08:00:00.000Z"
  2328. === Parsed with reviver2 and restringified :
  2329. "2008-11-10T08:00:00.000Z"
  2330. ------ JSON test stringify: string in Object ------
  2331. "hello"
  2332. === Parsed with no reviver and restringified :
  2333. "hello"
  2334. === Parsed with reviver2 and restringified :
  2335. "hello"
  2336. ------ JSON test stringify: number in Object ------
  2337. 33
  2338. === Parsed with no reviver and restringified :
  2339. 33
  2340. === Parsed with reviver2 and restringified :
  2341. 33
  2342. ------ JSON test stringify: bool in Object ------
  2343. true
  2344. === Parsed with no reviver and restringified :
  2345. true
  2346. === Parsed with reviver2 and restringified :
  2347. 99
  2348. ------ JSON test stringify: SimpleObject ------
  2349. {}
  2350. === Parsed with no reviver and restringified :
  2351. {}
  2352. === Parsed with reviver2 and restringified :
  2353. {}
  2354. ------ JSON test stringify: Object with nested objects and array ------
  2355. {
  2356. .........."a": {
  2357. ...................."a": {},
  2358. ...................."b": {
  2359. .............................."a": true,
  2360. .............................."b": false
  2361. ....................}
  2362. ..........}
  2363. }
  2364. !!Exception: SyntaxError: Invalid character
  2365. ------ JSON test stringify: Simple array ------
  2366. [
  2367. .........."document.location",
  2368. .........."foolish"
  2369. ]
  2370. !!Exception: SyntaxError: Invalid character
  2371. ------ JSON test stringify: Complex array ------
  2372. [
  2373. .........."document.location",
  2374. .........."foolish",
  2375. ..........12.3,
  2376. .........."2008-10-09T07:00:00.000Z",
  2377. ..........{},
  2378. ..........null,
  2379. ..........{},
  2380. ..........null,
  2381. ..........null,
  2382. ..........null,
  2383. ..........[
  2384. ...................."NestedArray_1stParamString",
  2385. ....................3.14,
  2386. ....................{
  2387. .............................."a": "nested object in array"
  2388. ....................},
  2389. ....................null,
  2390. ....................[]
  2391. ..........],
  2392. .........."[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  2393. ]
  2394. !!Exception: SyntaxError: Invalid character
  2395. *************************** JSON test stringify: replacer: replacer function, if the key is 'a' and the holder has a prop 'b', replace the value of the prop 'a' with the value of prop b space: null ***********************
  2396. ------ JSON test stringify: String simple ------
  2397. "SampleTest"
  2398. === Parsed with no reviver and restringified :
  2399. "SampleTest"
  2400. === Parsed with reviver2 and restringified :
  2401. "SampleTest"
  2402. ------ JSON test stringify: String complex ------
  2403. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2404. === Parsed with no reviver and restringified :
  2405. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2406. === Parsed with reviver2 and restringified :
  2407. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2408. ------ JSON test stringify: Number(1) ------
  2409. 1
  2410. === Parsed with no reviver and restringified :
  2411. 1
  2412. === Parsed with reviver2 and restringified :
  2413. 99
  2414. ------ JSON test stringify: Number(1234) ------
  2415. 12345
  2416. === Parsed with no reviver and restringified :
  2417. 12345
  2418. === Parsed with reviver2 and restringified :
  2419. 12345
  2420. ------ JSON test stringify: Number(3.14) ------
  2421. 3.14
  2422. === Parsed with no reviver and restringified :
  2423. 3.14
  2424. === Parsed with reviver2 and restringified :
  2425. undefined
  2426. ------ JSON test stringify: Number(NaN) ------
  2427. null
  2428. === Parsed with no reviver and restringified :
  2429. null
  2430. === Parsed with reviver2 and restringified :
  2431. null
  2432. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  2433. null
  2434. === Parsed with no reviver and restringified :
  2435. null
  2436. === Parsed with reviver2 and restringified :
  2437. null
  2438. ------ JSON test stringify: bool(true) ------
  2439. true
  2440. === Parsed with no reviver and restringified :
  2441. true
  2442. === Parsed with reviver2 and restringified :
  2443. 99
  2444. ------ JSON test stringify: bool(false) ------
  2445. false
  2446. === Parsed with no reviver and restringified :
  2447. false
  2448. === Parsed with reviver2 and restringified :
  2449. false
  2450. ------ JSON test stringify: null ------
  2451. null
  2452. === Parsed with no reviver and restringified :
  2453. null
  2454. === Parsed with reviver2 and restringified :
  2455. null
  2456. ------ JSON test stringify: undefined ------
  2457. undefined
  2458. !!Exception: SyntaxError: Invalid character
  2459. ------ JSON test stringify: Date(2008, 10, 10) ------
  2460. "2008-11-10T08:00:00.000Z"
  2461. === Parsed with no reviver and restringified :
  2462. "2008-11-10T08:00:00.000Z"
  2463. === Parsed with reviver2 and restringified :
  2464. "2008-11-10T08:00:00.000Z"
  2465. ------ JSON test stringify: string in Object ------
  2466. "hello"
  2467. === Parsed with no reviver and restringified :
  2468. "hello"
  2469. === Parsed with reviver2 and restringified :
  2470. "hello"
  2471. ------ JSON test stringify: number in Object ------
  2472. 33
  2473. === Parsed with no reviver and restringified :
  2474. 33
  2475. === Parsed with reviver2 and restringified :
  2476. 33
  2477. ------ JSON test stringify: bool in Object ------
  2478. true
  2479. === Parsed with no reviver and restringified :
  2480. true
  2481. === Parsed with reviver2 and restringified :
  2482. 99
  2483. ------ JSON test stringify: SimpleObject ------
  2484. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2485. === Parsed with no reviver and restringified :
  2486. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2487. === Parsed with reviver2 and restringified :
  2488. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2489. ------ JSON test stringify: Object with nested objects and array ------
  2490. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":false,"b":false}},"a":{"a":{"a":false,"b":false,"c":3.14},"nestedM2":1234,"b":{"a":false,"b":false,"c":3.14}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2491. === Parsed with no reviver and restringified :
  2492. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":false,"b":false}},"a":{"a":{"a":false,"b":false,"c":3.14},"nestedM2":1234,"b":{"a":false,"b":false,"c":3.14}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2493. === Parsed with reviver2 and restringified :
  2494. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":false,"b":false}},"a":{"a":{"a":false,"b":false},"nestedM2":1234,"b":{"a":false,"b":false}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2495. ------ JSON test stringify: Simple array ------
  2496. ["document.location","foolish"]
  2497. === Parsed with no reviver and restringified :
  2498. ["document.location","foolish"]
  2499. === Parsed with reviver2 and restringified :
  2500. ["document.location","foolish"]
  2501. ------ JSON test stringify: Complex array ------
  2502. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array","c":true},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  2503. === Parsed with no reviver and restringified :
  2504. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array","c":true},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  2505. === Parsed with reviver2 and restringified :
  2506. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array","c":99},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  2507. *************************** JSON test stringify: replacer: replacer function, if the key is 'a' and the holder has a prop 'b', replace the value of the prop 'a' with the value of prop b space: number 4 ***********************
  2508. ------ JSON test stringify: String simple ------
  2509. "SampleTest"
  2510. === Parsed with no reviver and restringified :
  2511. "SampleTest"
  2512. === Parsed with reviver2 and restringified :
  2513. "SampleTest"
  2514. ------ JSON test stringify: String complex ------
  2515. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2516. === Parsed with no reviver and restringified :
  2517. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2518. === Parsed with reviver2 and restringified :
  2519. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2520. ------ JSON test stringify: Number(1) ------
  2521. 1
  2522. === Parsed with no reviver and restringified :
  2523. 1
  2524. === Parsed with reviver2 and restringified :
  2525. 99
  2526. ------ JSON test stringify: Number(1234) ------
  2527. 12345
  2528. === Parsed with no reviver and restringified :
  2529. 12345
  2530. === Parsed with reviver2 and restringified :
  2531. 12345
  2532. ------ JSON test stringify: Number(3.14) ------
  2533. 3.14
  2534. === Parsed with no reviver and restringified :
  2535. 3.14
  2536. === Parsed with reviver2 and restringified :
  2537. undefined
  2538. ------ JSON test stringify: Number(NaN) ------
  2539. null
  2540. === Parsed with no reviver and restringified :
  2541. null
  2542. === Parsed with reviver2 and restringified :
  2543. null
  2544. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  2545. null
  2546. === Parsed with no reviver and restringified :
  2547. null
  2548. === Parsed with reviver2 and restringified :
  2549. null
  2550. ------ JSON test stringify: bool(true) ------
  2551. true
  2552. === Parsed with no reviver and restringified :
  2553. true
  2554. === Parsed with reviver2 and restringified :
  2555. 99
  2556. ------ JSON test stringify: bool(false) ------
  2557. false
  2558. === Parsed with no reviver and restringified :
  2559. false
  2560. === Parsed with reviver2 and restringified :
  2561. false
  2562. ------ JSON test stringify: null ------
  2563. null
  2564. === Parsed with no reviver and restringified :
  2565. null
  2566. === Parsed with reviver2 and restringified :
  2567. null
  2568. ------ JSON test stringify: undefined ------
  2569. undefined
  2570. !!Exception: SyntaxError: Invalid character
  2571. ------ JSON test stringify: Date(2008, 10, 10) ------
  2572. "2008-11-10T08:00:00.000Z"
  2573. === Parsed with no reviver and restringified :
  2574. "2008-11-10T08:00:00.000Z"
  2575. === Parsed with reviver2 and restringified :
  2576. "2008-11-10T08:00:00.000Z"
  2577. ------ JSON test stringify: string in Object ------
  2578. "hello"
  2579. === Parsed with no reviver and restringified :
  2580. "hello"
  2581. === Parsed with reviver2 and restringified :
  2582. "hello"
  2583. ------ JSON test stringify: number in Object ------
  2584. 33
  2585. === Parsed with no reviver and restringified :
  2586. 33
  2587. === Parsed with reviver2 and restringified :
  2588. 33
  2589. ------ JSON test stringify: bool in Object ------
  2590. true
  2591. === Parsed with no reviver and restringified :
  2592. true
  2593. === Parsed with reviver2 and restringified :
  2594. 99
  2595. ------ JSON test stringify: SimpleObject ------
  2596. {
  2597. "MemberNo1": "\"data\"",
  2598. "dateMember": "2008-04-01T07:00:00.000Z",
  2599. "nullMember": null,
  2600. "stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  2601. }
  2602. === Parsed with no reviver and restringified :
  2603. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2604. === Parsed with reviver2 and restringified :
  2605. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2606. ------ JSON test stringify: Object with nested objects and array ------
  2607. {
  2608. "MemberNo1": "\"data\"",
  2609. "dateMember": "2008-04-01T07:00:00.000Z",
  2610. "nullMember": null,
  2611. "arr": [
  2612. "document.location",
  2613. "foolish"
  2614. ],
  2615. "nested": {
  2616. "nestedM1": {},
  2617. "nestedM2": 1234,
  2618. "nestedM3": {
  2619. "a": false,
  2620. "b": false
  2621. }
  2622. },
  2623. "a": {
  2624. "a": {
  2625. "a": false,
  2626. "b": false,
  2627. "c": 3.14
  2628. },
  2629. "nestedM2": 1234,
  2630. "b": {
  2631. "a": false,
  2632. "b": false,
  2633. "c": 3.14
  2634. }
  2635. },
  2636. "stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  2637. }
  2638. === Parsed with no reviver and restringified :
  2639. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":false,"b":false}},"a":{"a":{"a":false,"b":false,"c":3.14},"nestedM2":1234,"b":{"a":false,"b":false,"c":3.14}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2640. === Parsed with reviver2 and restringified :
  2641. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":false,"b":false}},"a":{"a":{"a":false,"b":false},"nestedM2":1234,"b":{"a":false,"b":false}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2642. ------ JSON test stringify: Simple array ------
  2643. [
  2644. "document.location",
  2645. "foolish"
  2646. ]
  2647. === Parsed with no reviver and restringified :
  2648. ["document.location","foolish"]
  2649. === Parsed with reviver2 and restringified :
  2650. ["document.location","foolish"]
  2651. ------ JSON test stringify: Complex array ------
  2652. [
  2653. "document.location",
  2654. "foolish",
  2655. 12.3,
  2656. "2008-10-09T07:00:00.000Z",
  2657. {},
  2658. null,
  2659. {
  2660. "intMember": 3,
  2661. "strMember": "string_member_in_object"
  2662. },
  2663. null,
  2664. null,
  2665. null,
  2666. [
  2667. "NestedArray_1stParamString",
  2668. 3.14,
  2669. {
  2670. "a": "nested object in array",
  2671. "c": true
  2672. },
  2673. null,
  2674. []
  2675. ],
  2676. "[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  2677. ]
  2678. === Parsed with no reviver and restringified :
  2679. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array","c":true},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  2680. === Parsed with reviver2 and restringified :
  2681. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array","c":99},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  2682. *************************** JSON test stringify: replacer: replacer function, if the key is 'a' and the holder has a prop 'b', replace the value of the prop 'a' with the value of prop b space: number 24 ***********************
  2683. ------ JSON test stringify: String simple ------
  2684. "SampleTest"
  2685. === Parsed with no reviver and restringified :
  2686. "SampleTest"
  2687. === Parsed with reviver2 and restringified :
  2688. "SampleTest"
  2689. ------ JSON test stringify: String complex ------
  2690. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2691. === Parsed with no reviver and restringified :
  2692. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2693. === Parsed with reviver2 and restringified :
  2694. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2695. ------ JSON test stringify: Number(1) ------
  2696. 1
  2697. === Parsed with no reviver and restringified :
  2698. 1
  2699. === Parsed with reviver2 and restringified :
  2700. 99
  2701. ------ JSON test stringify: Number(1234) ------
  2702. 12345
  2703. === Parsed with no reviver and restringified :
  2704. 12345
  2705. === Parsed with reviver2 and restringified :
  2706. 12345
  2707. ------ JSON test stringify: Number(3.14) ------
  2708. 3.14
  2709. === Parsed with no reviver and restringified :
  2710. 3.14
  2711. === Parsed with reviver2 and restringified :
  2712. undefined
  2713. ------ JSON test stringify: Number(NaN) ------
  2714. null
  2715. === Parsed with no reviver and restringified :
  2716. null
  2717. === Parsed with reviver2 and restringified :
  2718. null
  2719. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  2720. null
  2721. === Parsed with no reviver and restringified :
  2722. null
  2723. === Parsed with reviver2 and restringified :
  2724. null
  2725. ------ JSON test stringify: bool(true) ------
  2726. true
  2727. === Parsed with no reviver and restringified :
  2728. true
  2729. === Parsed with reviver2 and restringified :
  2730. 99
  2731. ------ JSON test stringify: bool(false) ------
  2732. false
  2733. === Parsed with no reviver and restringified :
  2734. false
  2735. === Parsed with reviver2 and restringified :
  2736. false
  2737. ------ JSON test stringify: null ------
  2738. null
  2739. === Parsed with no reviver and restringified :
  2740. null
  2741. === Parsed with reviver2 and restringified :
  2742. null
  2743. ------ JSON test stringify: undefined ------
  2744. undefined
  2745. !!Exception: SyntaxError: Invalid character
  2746. ------ JSON test stringify: Date(2008, 10, 10) ------
  2747. "2008-11-10T08:00:00.000Z"
  2748. === Parsed with no reviver and restringified :
  2749. "2008-11-10T08:00:00.000Z"
  2750. === Parsed with reviver2 and restringified :
  2751. "2008-11-10T08:00:00.000Z"
  2752. ------ JSON test stringify: string in Object ------
  2753. "hello"
  2754. === Parsed with no reviver and restringified :
  2755. "hello"
  2756. === Parsed with reviver2 and restringified :
  2757. "hello"
  2758. ------ JSON test stringify: number in Object ------
  2759. 33
  2760. === Parsed with no reviver and restringified :
  2761. 33
  2762. === Parsed with reviver2 and restringified :
  2763. 33
  2764. ------ JSON test stringify: bool in Object ------
  2765. true
  2766. === Parsed with no reviver and restringified :
  2767. true
  2768. === Parsed with reviver2 and restringified :
  2769. 99
  2770. ------ JSON test stringify: SimpleObject ------
  2771. {
  2772. "MemberNo1": "\"data\"",
  2773. "dateMember": "2008-04-01T07:00:00.000Z",
  2774. "nullMember": null,
  2775. "stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  2776. }
  2777. === Parsed with no reviver and restringified :
  2778. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2779. === Parsed with reviver2 and restringified :
  2780. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2781. ------ JSON test stringify: Object with nested objects and array ------
  2782. {
  2783. "MemberNo1": "\"data\"",
  2784. "dateMember": "2008-04-01T07:00:00.000Z",
  2785. "nullMember": null,
  2786. "arr": [
  2787. "document.location",
  2788. "foolish"
  2789. ],
  2790. "nested": {
  2791. "nestedM1": {},
  2792. "nestedM2": 1234,
  2793. "nestedM3": {
  2794. "a": false,
  2795. "b": false
  2796. }
  2797. },
  2798. "a": {
  2799. "a": {
  2800. "a": false,
  2801. "b": false,
  2802. "c": 3.14
  2803. },
  2804. "nestedM2": 1234,
  2805. "b": {
  2806. "a": false,
  2807. "b": false,
  2808. "c": 3.14
  2809. }
  2810. },
  2811. "stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  2812. }
  2813. === Parsed with no reviver and restringified :
  2814. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":false,"b":false}},"a":{"a":{"a":false,"b":false,"c":3.14},"nestedM2":1234,"b":{"a":false,"b":false,"c":3.14}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2815. === Parsed with reviver2 and restringified :
  2816. {"MemberNo1":"\"data\"","dateMember":"2008-04-01T07:00:00.000Z","nullMember":null,"arr":["document.location","foolish"],"nested":{"nestedM1":{},"nestedM2":1234,"nestedM3":{"a":false,"b":false}},"a":{"a":{"a":false,"b":false},"nestedM2":1234,"b":{"a":false,"b":false}},"stringmember":"this string ends the obj. You should not see functionMember and undefinedMember"}
  2817. ------ JSON test stringify: Simple array ------
  2818. [
  2819. "document.location",
  2820. "foolish"
  2821. ]
  2822. === Parsed with no reviver and restringified :
  2823. ["document.location","foolish"]
  2824. === Parsed with reviver2 and restringified :
  2825. ["document.location","foolish"]
  2826. ------ JSON test stringify: Complex array ------
  2827. [
  2828. "document.location",
  2829. "foolish",
  2830. 12.3,
  2831. "2008-10-09T07:00:00.000Z",
  2832. {},
  2833. null,
  2834. {
  2835. "intMember": 3,
  2836. "strMember": "string_member_in_object"
  2837. },
  2838. null,
  2839. null,
  2840. null,
  2841. [
  2842. "NestedArray_1stParamString",
  2843. 3.14,
  2844. {
  2845. "a": "nested object in array",
  2846. "c": true
  2847. },
  2848. null,
  2849. []
  2850. ],
  2851. "[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  2852. ]
  2853. === Parsed with no reviver and restringified :
  2854. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",3.14,{"a":"nested object in array","c":true},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  2855. === Parsed with reviver2 and restringified :
  2856. ["document.location","foolish",12.3,"2008-10-09T07:00:00.000Z",{},null,{"intMember":3,"strMember":"string_member_in_object"},null,null,null,["NestedArray_1stParamString",null,{"a":"nested object in array","c":99},null,[]],"[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"]
  2857. *************************** JSON test stringify: replacer: replacer function, if the key is 'a' and the holder has a prop 'b', replace the value of the prop 'a' with the value of prop b space: string : ........................ ***********************
  2858. ------ JSON test stringify: String simple ------
  2859. "SampleTest"
  2860. === Parsed with no reviver and restringified :
  2861. "SampleTest"
  2862. === Parsed with reviver2 and restringified :
  2863. "SampleTest"
  2864. ------ JSON test stringify: String complex ------
  2865. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2866. === Parsed with no reviver and restringified :
  2867. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2868. === Parsed with reviver2 and restringified :
  2869. "/test ze\u0000ro\u000bString\n_u4:a_u2:¼_u1:\u000e_u2clean:�"
  2870. ------ JSON test stringify: Number(1) ------
  2871. 1
  2872. === Parsed with no reviver and restringified :
  2873. 1
  2874. === Parsed with reviver2 and restringified :
  2875. 99
  2876. ------ JSON test stringify: Number(1234) ------
  2877. 12345
  2878. === Parsed with no reviver and restringified :
  2879. 12345
  2880. === Parsed with reviver2 and restringified :
  2881. 12345
  2882. ------ JSON test stringify: Number(3.14) ------
  2883. 3.14
  2884. === Parsed with no reviver and restringified :
  2885. 3.14
  2886. === Parsed with reviver2 and restringified :
  2887. undefined
  2888. ------ JSON test stringify: Number(NaN) ------
  2889. null
  2890. === Parsed with no reviver and restringified :
  2891. null
  2892. === Parsed with reviver2 and restringified :
  2893. null
  2894. ------ JSON test stringify: Number(POSITIVE_INFINITY) ------
  2895. null
  2896. === Parsed with no reviver and restringified :
  2897. null
  2898. === Parsed with reviver2 and restringified :
  2899. null
  2900. ------ JSON test stringify: bool(true) ------
  2901. true
  2902. === Parsed with no reviver and restringified :
  2903. true
  2904. === Parsed with reviver2 and restringified :
  2905. 99
  2906. ------ JSON test stringify: bool(false) ------
  2907. false
  2908. === Parsed with no reviver and restringified :
  2909. false
  2910. === Parsed with reviver2 and restringified :
  2911. false
  2912. ------ JSON test stringify: null ------
  2913. null
  2914. === Parsed with no reviver and restringified :
  2915. null
  2916. === Parsed with reviver2 and restringified :
  2917. null
  2918. ------ JSON test stringify: undefined ------
  2919. undefined
  2920. !!Exception: SyntaxError: Invalid character
  2921. ------ JSON test stringify: Date(2008, 10, 10) ------
  2922. "2008-11-10T08:00:00.000Z"
  2923. === Parsed with no reviver and restringified :
  2924. "2008-11-10T08:00:00.000Z"
  2925. === Parsed with reviver2 and restringified :
  2926. "2008-11-10T08:00:00.000Z"
  2927. ------ JSON test stringify: string in Object ------
  2928. "hello"
  2929. === Parsed with no reviver and restringified :
  2930. "hello"
  2931. === Parsed with reviver2 and restringified :
  2932. "hello"
  2933. ------ JSON test stringify: number in Object ------
  2934. 33
  2935. === Parsed with no reviver and restringified :
  2936. 33
  2937. === Parsed with reviver2 and restringified :
  2938. 33
  2939. ------ JSON test stringify: bool in Object ------
  2940. true
  2941. === Parsed with no reviver and restringified :
  2942. true
  2943. === Parsed with reviver2 and restringified :
  2944. 99
  2945. ------ JSON test stringify: SimpleObject ------
  2946. {
  2947. .........."MemberNo1": "\"data\"",
  2948. .........."dateMember": "2008-04-01T07:00:00.000Z",
  2949. .........."nullMember": null,
  2950. .........."stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  2951. }
  2952. !!Exception: SyntaxError: Invalid character
  2953. ------ JSON test stringify: Object with nested objects and array ------
  2954. {
  2955. .........."MemberNo1": "\"data\"",
  2956. .........."dateMember": "2008-04-01T07:00:00.000Z",
  2957. .........."nullMember": null,
  2958. .........."arr": [
  2959. ...................."document.location",
  2960. ...................."foolish"
  2961. ..........],
  2962. .........."nested": {
  2963. ...................."nestedM1": {},
  2964. ...................."nestedM2": 1234,
  2965. ...................."nestedM3": {
  2966. .............................."a": false,
  2967. .............................."b": false
  2968. ....................}
  2969. ..........},
  2970. .........."a": {
  2971. ...................."a": {
  2972. .............................."a": false,
  2973. .............................."b": false,
  2974. .............................."c": 3.14
  2975. ....................},
  2976. ...................."nestedM2": 1234,
  2977. ...................."b": {
  2978. .............................."a": false,
  2979. .............................."b": false,
  2980. .............................."c": 3.14
  2981. ....................}
  2982. ..........},
  2983. .........."stringmember": "this string ends the obj. You should not see functionMember and undefinedMember"
  2984. }
  2985. !!Exception: SyntaxError: Invalid character
  2986. ------ JSON test stringify: Simple array ------
  2987. [
  2988. .........."document.location",
  2989. .........."foolish"
  2990. ]
  2991. !!Exception: SyntaxError: Invalid character
  2992. ------ JSON test stringify: Complex array ------
  2993. [
  2994. .........."document.location",
  2995. .........."foolish",
  2996. ..........12.3,
  2997. .........."2008-10-09T07:00:00.000Z",
  2998. ..........{},
  2999. ..........null,
  3000. ..........{
  3001. ...................."intMember": 3,
  3002. ...................."strMember": "string_member_in_object"
  3003. ..........},
  3004. ..........null,
  3005. ..........null,
  3006. ..........null,
  3007. ..........[
  3008. ...................."NestedArray_1stParamString",
  3009. ....................3.14,
  3010. ....................{
  3011. .............................."a": "nested object in array",
  3012. .............................."c": true
  3013. ....................},
  3014. ....................null,
  3015. ....................[]
  3016. ..........],
  3017. .........."[0]-document.location, [1]-string, [2]-number, [3]-date, [4]-empty obj, [5]-missing, [6]-obj, [7]-null, [8]-undef, [9]-function, [10]-nestedArray, [11]-this"
  3018. ]
  3019. !!Exception: SyntaxError: Invalid character