1# Copyright (c) 2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14Start testJSONParseSendable 15sharedObj.arr: 1,2,3,4,5 16sharedObj.innerEntry: [object Object] 17sharedObj.innerEntry.x: 1 18sharedObj.innerEntry.y: abc 19sharedObj.innerEntry.str: innerStr 20sharedArr: 1,3,5,7,9 21sharedObj1.x: 1 22sharedObj1.y: 你好 23Start jsonRepeatCall 24stringify1: {"innerEntry":{"x":1,"y":"abc","str":"innerStr"},"arr":[1,2,3,4,5]} 25stringify2: {"innerEntry":{"x":1,"y":"abc","str":"innerStr"},"arr":[1,2,3,4,5]} 26stringify3: {"innerEntry":{"x":1,"y":"abc","str":"innerStr"},"arr":[1,2,3,4,5]} 27stringify4: [1,3,5,7,9] 28stringify5: [1,3,5,7,9] 29stringify6: [1,3,5,7,9] 30stringify7: {"x":1,"y":"你好"} 31stringify8: {"x":1,"y":"你好"} 32stringify9: {"x":1,"y":"你好"} 33sharedObj2.x: 你好 34sharedObj2.a: 2 35stringify10: {"x":"你好","a":2} 36123 371122334455667788999 38true 39123 401122334455667788999 41true 421234567890.0123456 431.79e+308 441.7976931348623157e+308 45{"big":1122334455667788999,"small":123,"deci":1234567890.0123456,"shortExp":1.79e+308,"longExp":1.7976931348623157e+308} 46{"big":1122334455667788999,"small":123,"deci":1234567890.0123456,"shortExp":1.79e+308,"longExp":1.7976931348623157e+308} 47123 481122334455667788999 49true 50123 511122334455667788999 52true 531234567890.0123456 541.79e+308 551.7976931348623157e+308 56{"big":1122334455667788999,"small":123,"deci":1234567890.0123456,"shortExp":1.79e+308,"longExp":1.7976931348623157e+308} 57{"big":1122334455667788999,"small":123,"deci":1234567890.0123456,"shortExp":1.79e+308,"longExp":1.7976931348623157e+308} 58123 591122334455667789000 601234567890.0123456 611.79e+308 621.7976931348623157e+308 63true 64true 65true 66true 67true 68TypeError: reviver only supports undefined for SENDABLE_JSON 69TypeError: reviver only supports undefined for SENDABLE_JSON 700.0000123 710.4799123 720.7777334477383838 731.23e-14 740.0000123 750.4799123 760.7777334477383838 771.23e-14 780.0000123 790.4799123 800.7777334477383838 811.23e-14 820.0000123 830.4799123 840.7777334477383838 851.23e-14 86ASON support MAP Test Start 87112233445566778899 88true 89[object SendableMap] 90SyntaxError: Unexpected MAP Prop in JSON 91SyntaxError: Unexpected MAP in JSON 92[object SendableMap] 93sendableMap5 size: 2 94sendableMap5 x: 你好 95sendableMap5 a: 2 96sendableMap6 arr: 1,2,3 97sendableMap6 boolA: true 98sendableMap6 boolB: false 99sendableMap6 nullText: null 100ASON parse asonstr1: 45 101ASON parse asonstr2: 89 102ASON parse asonstr3: eetrue1123 103{"123":"1","124":"123","1234":"bb","xx":"yy","aaa":"ee","success":"true"} 1040 105