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

276 Commits

Author SHA1 Message Date
Tao Wen
8367a97ad8 gofmt 2017-06-20 07:39:54 +08:00
Tao Wen
365d399192 #65 make placeholder thread safe 2017-06-20 07:39:38 +08:00
Tao Wen
839247df05 #63 fix Marshaler and Unmarshaler on struct 2017-06-20 07:23:22 +08:00
Tao Wen
f5edf564c8 gofmt 2017-06-19 23:43:53 +08:00
Tao Wen
c3f5a2c536 #64 support fixed array 2017-06-19 23:43:28 +08:00
Tao Wen
c6a598e292 # add jsoniter.RawMessage 2017-06-19 23:10:20 +08:00
Tao Wen
eecb062c32 #63 support decode anonymous struct 2017-06-19 23:02:57 +08:00
Tao Wen
50583f6bae #63 support *json.RawMessage 2017-06-19 22:57:43 +08:00
Tao Wen
3b883aeffc #63 add more tests for json.RawMessage 2017-06-19 21:24:59 +08:00
Tao Wen
baca358b53 add MustBeValid to Any 2017-06-19 21:21:20 +08:00
Tao Wen
514db10f97 add Any.ToVal 2017-06-19 15:40:00 +08:00
Tao Wen
31afe6450e add Api interface to allow save the frozen config 2017-06-19 13:43:22 +08:00
Tao Wen
7e9017caa2 remove unused files 2017-06-18 23:43:01 +08:00
Tao Wen
b6dfbbd6bc add document 2017-06-18 23:42:23 +08:00
Tao Wen
3ffa5af7ec #61 remove internal buffer from mapAny 2017-06-18 23:18:32 +08:00
Tao Wen
02cf6a73cc #61 remove internal buffer from objectAny 2017-06-18 23:09:30 +08:00
Tao Wen
15c92d48df #61 remove internal buffer from numberLazyAny 2017-06-18 22:48:28 +08:00
Tao Wen
a84cdaa694 #61 remove internal buffer from arrayAny 2017-06-18 22:40:18 +08:00
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