1
0
mirror of https://github.com/json-iterator/go.git synced 2024-11-27 08:30:57 +02:00
Commit Graph

258 Commits

Author SHA1 Message Date
Tao Wen
9f9ca4c9fc #61 remove stringLazyAny 2017-06-18 22:24:11 +08:00
Tao Wen
985e263300 #61 removed internal buffer from lazy array and object; jsoniter.Get replaced jsoniter.UnmarshalAny 2017-06-18 22:22:13 +08:00
Tao Wen
1ec246d16b #61 read any reuse skip impl 2017-06-18 17:00:28 +08:00
Tao Wen
54dbcda64d #62 SkipAndReturnBytes should support reader 2017-06-18 16:28:43 +08:00
Tao Wen
7a049ec79c #60 support read interface{} as json.Number 2017-06-18 15:22:37 +08:00
Tao Wen
77dcffe77d tweak performance 2017-06-17 22:42:11 +08:00
Tao Wen
8ab46965bd extract out any tests 2017-06-17 21:32:48 +08:00
Tao Wen
2503ef17eb marshal lazy array/object using the config 2017-06-17 21:13:17 +08:00
Tao Wen
0195110b5b gofmt 2017-06-17 21:11:23 +08:00
Tao Wen
55fc498d27 use iterator from cache for any 2017-06-17 21:10:08 +08:00
Tao Wen
50e4910c63 document how to get best performance 2017-06-17 17:14:34 +08:00
Tao Wen
f29fe7407e downgrade to lower golang version 2017-06-17 16:27:19 +08:00
Tao Wen
3c8bd9ef54 #57 copy bytes 2017-06-17 14:36:38 +08:00
Tao Wen
952a42af6c #57 copy bytes 2017-06-17 14:36:05 +08:00
Tao Wen
17bd91fd71 #57 reuse stream and iterator 2017-06-17 14:23:02 +08:00
Tao Wen
3d5f6d3a4a #58 string mode support both encoding and decoding 2017-06-17 11:38:09 +08:00
Tao Wen
b31b1301e2 #59 add ConfigFastest 2017-06-17 10:21:37 +08:00
Tao Wen
69bc64b6d8 #54 support sort map keys 2017-06-16 16:46:30 +08:00
Tao Wen
e0e2423e9a #53 test compatibility without html escape 2017-06-16 16:03:02 +08:00
Tao Wen
a6ea770365 #53 implement SetEscapeHtml 2017-06-16 00:10:05 +08:00
Tao Wen
5f22e50c89 #53 support escapeHtml 2017-06-15 23:55:04 +08:00
Tao Wen
d867c8ba5c #53 split config into Config and frozenConfig 2017-06-13 18:49:35 +08:00
Tao Wen
d0418857ce #53 move current config EnableXXX 2017-06-13 17:47:40 +08:00
Tao Wen
48e9f6ec84 move IndentionStep to config 2017-06-13 17:03:27 +08:00
Tao Wen
acddcf5bbf #53 extract out config 2017-06-13 16:58:53 +08:00
Tao Wen
788918b85d #56 nil map or array should be null not [] or {} 2017-06-13 09:14:19 +08:00
Tao Wen
6e5817b773 Merge pull request #55 from thockin/output_tests
WIP: Tests to compare against stdlib
2017-06-12 01:47:50 -05:00
Tim Hockin
7480e41836 Add output tests for maps of builtins
This tests for exact stdlib compatibility.
2017-06-11 21:09:56 -07:00
Tim Hockin
9215b3c508 Add output tests for builtin types
This fuzzes a type, marshals it with stdlib and json-iterator, compares,
then unmarshals with stdlib and json-iterator and compares.  This is
checking for literal, byte-for-byte compatibility.

In every case the test is exactly the same.

It also include benchmark functions to compare stdlib vs json-iterator.

This depends on a couple PRs to be merged in gofuzz.
2017-06-11 21:04:59 -07:00
Tao Wen
64e500f3c8 Merge branch 'master' of https://github.com/json-iterator/go 2017-06-12 10:13:22 +08:00
Tao Wen
3307ce3ba2 #50 map key unlike object field, can contain escaped char 2017-06-12 10:13:13 +08:00
Fei Ni
6f50f15678 decoder/encoder;float precision doc 2017-06-11 16:30:31 +08:00
Fei Ni
cee09816e3 decoder/encoder;float precision doc 2017-06-11 16:28:31 +08:00
Fei Ni
cdbad22d22 test more package description 2017-06-11 15:35:45 +08:00
Fei Ni
b0c9f047e2 test more than one pakcage description 2017-06-11 15:32:58 +08:00
Tao Wen
6bd13c2948 Merge branch 'master' of https://github.com/json-iterator/go 2017-06-09 17:06:38 +08:00
Tao Wen
84ad508437 #48 should return error if concrete tpye unknown 2017-06-09 17:06:27 +08:00
Tao Wen
4f909776cf Merge pull request #49 from zhaitianduo/master
Use jsoniter instead of json in example
2017-06-09 03:32:31 -05:00
zhaitianduo
962c470806 fix import not use 2017-06-09 16:28:20 +08:00
zhaitianduo
46d443fbad use jsoniter for example 2017-06-09 16:25:58 +08:00
nifei
2608d40f2a example unmarshal 2017-06-08 12:08:47 +08:00
nifei
3cf822853f example unmarshal 2017-06-08 12:07:03 +08:00
Tao Wen
26708bccc9 report error when string end not found 2017-06-08 09:46:19 +08:00
Tao Wen
d75b539bad add test for scientific float 2017-06-07 21:34:56 +08:00
Tao Wen
cfffa29c8a gofmt 2017-06-06 23:27:00 +08:00
Tao Wen
925df245d3 good enough indent implementation 2017-06-06 23:18:37 +08:00
Tao Wen
962a8cd303 #40 support UseNumber 2017-06-06 23:15:15 +08:00
Tao Wen
6509ba05df Merge pull request #41 from 1046102779/master
解析时,如果输出参数不是指针类型,直接报错,避免程序挂掉
2017-06-06 10:03:06 -05:00
Tao Wen
579dbf3c1d Merge pull request #42 from 1046102779/patch-1
把floatDigits改为intDigits
2017-06-06 10:02:26 -05:00
yellow chicks
aa5181db67 把floatDigits改为intDigits 2017-06-06 21:08:04 +08:00