{"ScriptPreparationCode":"var stringData = {\u0022glossary\u0022:{\u0022title\u0022:\u0022example glossary\u0022,\u0022GlossDiv\u0022:{\u0022title\u0022:\u0022S\u0022,\u0022GlossList\u0022:{\u0022GlossEntry\u0022:{\u0022ID\u0022:\u0022SGML\u0022,\u0022SortAs\u0022:\u0022SGML\u0022,\u0022GlossTerm\u0022:\u0022Standard Generalized Markup Language\u0022,\u0022Acronym\u0022:\u0022SGML\u0022,\u0022Abbrev\u0022:\u0022ISO 8879:1986\u0022,\u0022GlossDef\u0022:{\u0022para\u0022:\u0022A meta-markup language, used to create markup languages such as DocBook.\u0022,\u0022GlossSeeAlso\u0022:[\u0022GML\u0022,\u0022XML\u0022]},\u0022GlossSee\u0022:\u0022markup\u0022}}}}};\r\nvar numberData = [\r\n [1, 2, 3, 4, -1, true, null],\r\n [3, 6, 5, 4, 1, false, 7],\r\n [3, 2, 8, 1, 0, true, 0],\r\n [10, 11, 12, 13, 14, false, true],\r\n [15, 16, 17, 18, 19, true, null],\r\n [20, 21, 22, 23, 24, false, 7],\r\n [25, 26, 27, 28, 29, true, 0],\r\n 100, 200, 300,\r\n [\r\n [1, 0, 0, 0, 0],\r\n [0, 1, 0, 0, 0],\r\n [0, 0, 1, 0, 0],\r\n [0, 0, 0, 1, 0],\r\n [0, 0, 0, 0, 1]\r\n ]\r\n];\r\nvar jsonEncodedStrings = JSON.stringify(stringData),\r\n jsonEncodedNumbers = JSON.stringify(numberData),\r\n msgpackEncodedStrings = msgpack.encode(stringData),\r\n msgpackEncodedNumbers = msgpack.encode(numberData);","TestCases":[{"Name":"MsgPack Strings Encode","Code":"var result = msgpack.encode(stringData);","IsDeferred":false},{"Name":"JSON Strings Encode","Code":"var result = JSON.stringify(stringData);","IsDeferred":false},{"Name":"MsgPack Numbers Encode","Code":"var result = msgpack.encode(numberData);","IsDeferred":false},{"Name":"JSON Numbers Encode","Code":"var result = JSON.stringify(numberData);","IsDeferred":false},{"Name":"JSON string decode","Code":"var result = JSON.parse(jsonEncodedStrings);","IsDeferred":false},{"Name":"msgpack string decode","Code":"var result = msgpack.decode(msgpackEncodedStrings);","IsDeferred":false}]}