# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. Start testJSONParseSendable sharedObj.arr: 1,2,3,4,5 sharedObj.innerEntry: [object Object] sharedObj.innerEntry.x: 1 sharedObj.innerEntry.y: abc sharedObj.innerEntry.str: innerStr sharedArr: 1,3,5,7,9 sharedObj1.x: 1 sharedObj1.y: 你好 Start jsonRepeatCall stringify1: {"innerEntry":{"x":1,"y":"abc","str":"innerStr"},"arr":[1,2,3,4,5]} stringify2: {"innerEntry":{"x":1,"y":"abc","str":"innerStr"},"arr":[1,2,3,4,5]} stringify3: {"innerEntry":{"x":1,"y":"abc","str":"innerStr"},"arr":[1,2,3,4,5]} stringify4: [1,3,5,7,9] stringify5: [1,3,5,7,9] stringify6: [1,3,5,7,9] stringify7: {"x":1,"y":"你好"} stringify8: {"x":1,"y":"你好"} stringify9: {"x":1,"y":"你好"} sharedObj2.x: 你好 sharedObj2.a: 2 stringify10: {"x":"你好","a":2} 123 1122334455667788999 true 123 1122334455667788999 true 1234567890.0123456 1.79e+308 1.7976931348623157e+308 {"big":1122334455667788999,"small":123,"deci":1234567890.0123456,"shortExp":1.79e+308,"longExp":1.7976931348623157e+308} {"big":1122334455667788999,"small":123,"deci":1234567890.0123456,"shortExp":1.79e+308,"longExp":1.7976931348623157e+308} 123 1122334455667788999 true 123 1122334455667788999 true 1234567890.0123456 1.79e+308 1.7976931348623157e+308 {"big":1122334455667788999,"small":123,"deci":1234567890.0123456,"shortExp":1.79e+308,"longExp":1.7976931348623157e+308} {"big":1122334455667788999,"small":123,"deci":1234567890.0123456,"shortExp":1.79e+308,"longExp":1.7976931348623157e+308} 123 1122334455667789000 1234567890.0123456 1.79e+308 1.7976931348623157e+308 true true true true true TypeError: reviver only supports undefined for SENDABLE_JSON TypeError: reviver only supports undefined for SENDABLE_JSON 0.0000123 0.4799123 0.7777334477383838 1.23e-14 0.0000123 0.4799123 0.7777334477383838 1.23e-14 0.0000123 0.4799123 0.7777334477383838 1.23e-14 0.0000123 0.4799123 0.7777334477383838 1.23e-14 ASON support MAP Test Start 112233445566778899 true [object SendableMap] SyntaxError: Unexpected MAP Prop in JSON SyntaxError: Unexpected MAP in JSON [object SendableMap] sendableMap5 size: 2 sendableMap5 x: 你好 sendableMap5 a: 2 sendableMap6 arr: 1,2,3 sendableMap6 boolA: true sendableMap6 boolB: false sendableMap6 nullText: null ASON parse asonstr1: 45 ASON parse asonstr2: 89 ASON parse asonstr3: eetrue1123 {"123":"1","124":"123","1234":"bb","xx":"yy","aaa":"ee","success":"true"} 0 {"text":"ASON support MAP Test Start","largeNumber":112233445566778899,"people":{"name":"Mary","sex":"1","height":"165"}} {"args1":true,"args2":false,"args3":null} {"people":{"name":"Mary","sex":"1","height":165,"args":{"arr":[1,2,3],"check":true,"num":null}}} {"features":{"ut":{"args":{"bizType":"SQYK","isChecked":false,"packageId":9223372036854775806}}}} ["foo","bar","baz"] ["foo","bar","baz"] {"foo":1,"bar":2,"baz":3} true true {"arr1":[1,2,3,4],"arr2":[3,5,7,9]} {} {"v":100,"map":{"arr1":[1,2,3,4],"arr2":[3,5,7,9]}} {"v":100,"map":{}} [{"v":100,"map":{"arr1":[1,2,3,4],"arr2":[3,5,7,9]}}] {} {"arr3":[1,2,3,4],"arr4":[3,5,7,9]} {} {"v":200,"map":{"arr3":[1,2,3,4],"arr4":[3,5,7,9]}} {"v":200,"map":{}} [{"v":200,"map":{"arr3":[1,2,3,4],"arr4":[3,5,7,9]}}] {} {"set":[{"v":200,"map":{"arr3":[1,2,3,4],"arr4":[3,5,7,9]}}]} {} [{"set":[{"v":200,"map":{"arr3":[1,2,3,4],"arr4":[3,5,7,9]}}]}] {}