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

236 Commits

Author SHA1 Message Date
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
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
Tao Wen
af4982b22c support decode int key map 2017-06-05 23:53:48 +08:00
Tao Wen
29dc1d407d write map with int key 2017-06-05 23:01:00 +08:00
Tao Wen
5b27aaa62c update test 2017-06-05 22:10:01 +08:00
Tao Wen
106636a191 update test 2017-06-05 22:08:28 +08:00
Tao Wen
f50c4cfbbe Merge branch 'master' of https://github.com/json-iterator/go 2017-06-05 22:05:02 +08:00
Tao Wen
87149ae489 add simple marshal benchmark 2017-06-05 22:04:52 +08:00
nifei
c0a4ad72e1 example test 2017-06-05 20:37:08 +08:00
nifei
404c0ee44b Decoder doc 2017-06-05 19:57:20 +08:00
nifei
10c1506f87 link test 2017-06-05 19:38:34 +08:00
nifei
9a43fe6468 adapter api comment 2017-06-05 19:31:30 +08:00
nifei
95e03f2937 Marshal comment 2017-06-05 19:19:46 +08:00
nifei
4406ed9e62 Marshal comment 2017-06-05 19:18:12 +08:00
nifei
ff027701f5 Marshal comment 2017-06-05 19:15:56 +08:00