1
0
mirror of https://github.com/json-iterator/go.git synced 2025-03-11 14:09:42 +02:00

249 Commits

Author SHA1 Message Date
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 copy bytes 2017-06-17 14:36:38 +08:00
Tao Wen
952a42af6c copy bytes 2017-06-17 14:36:05 +08:00
Tao Wen
17bd91fd71 reuse stream and iterator 2017-06-17 14:23:02 +08:00
Tao Wen
3d5f6d3a4a string mode support both encoding and decoding 2017-06-17 11:38:09 +08:00
Tao Wen
b31b1301e2 add ConfigFastest 2017-06-17 10:21:37 +08:00
Tao Wen
69bc64b6d8 support sort map keys jsoniter-go-0.9.14 2017-06-16 16:46:30 +08:00
Tao Wen
e0e2423e9a test compatibility without html escape 2017-06-16 16:03:02 +08:00
Tao Wen
a6ea770365 implement SetEscapeHtml 2017-06-16 00:10:05 +08:00
Tao Wen
5f22e50c89 support escapeHtml 2017-06-15 23:55:04 +08:00
Tao Wen
d867c8ba5c split config into Config and frozenConfig 2017-06-13 18:49:35 +08:00
Tao Wen
d0418857ce 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 extract out config 2017-06-13 16:58:53 +08:00
Tao Wen
788918b85d nil map or array should be null not [] or {} 2017-06-13 09:14:19 +08:00
Tao Wen
6e5817b773 Merge pull request 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 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 should return error if concrete tpye unknown 2017-06-09 17:06:27 +08:00
Tao Wen
4f909776cf Merge pull request 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 support UseNumber 2017-06-06 23:15:15 +08:00
Tao Wen
6509ba05df Merge pull request from 1046102779/master
解析时,如果输出参数不是指针类型,直接报错,避免程序挂掉
2017-06-06 10:03:06 -05:00
Tao Wen
579dbf3c1d Merge pull request 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
yellow chicks
67be6df2b1 Update feature_adapter.go 2017-06-06 20:01:43 +08:00
chendonghai
0f5379494a unmarshal failed return non-pointer error 2017-06-06 19:36:33 +08:00
Tao Wen
d09e2419ba update benchmark 2017-06-06 16:55:32 +08:00
Tao Wen
e1a71f6ba1 update benchmark 2017-06-06 16:54:26 +08:00
Tao Wen
dcb78991c4 flush when buffer is large enough 2017-06-06 14:16:54 +08:00
Tao Wen
9e8238cdc6 remove unused file 2017-06-06 12:41:13 +08:00
Tao Wen
a4e5abf492 support []byte; marshal without copy 2017-06-06 09:44:56 +08:00
Tao Wen
3979955e69 support TextMarshaler as map key 2017-06-06 00:09:33 +08:00
Tao Wen
5fd09f0e02 remove mapInterfaceEncoder 2017-06-05 23:56:37 +08:00