Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3972 commits
Select commit Hold shift + click to select a range
1ccfdf3
Update README.md
anirudhdmenon Oct 1, 2020
5f2c892
Merge pull request #3478 from anirudhdmenon/patch-1
wenshao Oct 3, 2020
4a9ca85
Merge pull request #3475 from akiyamaneko/AfterFilter-NullPointerExce…
wenshao Oct 3, 2020
85fdac6
Fix flaky testcases for issue #1780
MengdiGao Oct 7, 2020
75cb30d
Merge pull request #3464 from T45K/fix-typo
wenshao Oct 8, 2020
a1891bf
add deprecate method for compatible
wenshao Oct 8, 2020
9bf1035
Merge pull request #3440 from blindarcheology/fixed-issues-3436
wenshao Oct 8, 2020
afc0243
merge test case from #3451
wenshao Oct 8, 2020
dd1cec4
bug fixed for issue #3460, JSONValidator.supportMultiValue default false
wenshao Oct 8, 2020
bdc65e5
Merge pull request #3439 from blindarcheology/fixed-performance
wenshao Oct 8, 2020
dfe772e
refactor for performance
wenshao Oct 8, 2020
1f3dd75
Merge pull request #3459 from biyanwen/byw/bug_3453
wenshao Oct 8, 2020
803fd73
add testcase for #3470
wenshao Oct 8, 2020
8640693
Merge pull request #3483 from MengdiGao/fix-issue-1780-test
wenshao Oct 8, 2020
52dc346
fix testcase
wenshao Oct 8, 2020
250f632
1.2.75 init
wenshao Oct 8, 2020
789f983
[fix #3469] add Proxy check case.
Koooooo-7 Oct 8, 2020
69e1104
Merge remote-tracking branch 'upstream/master'
blindarcheology Oct 10, 2020
8e5dad7
bug fixed for TypeReference oom
wenshao Oct 10, 2020
6694734
bug fixed for TypeReference oom
wenshao Oct 10, 2020
84baf13
add testcase for issue #3452
wenshao Oct 11, 2020
0491ad3
add testcase for issue #3465
wenshao Oct 11, 2020
f602a16
code refactor
wenshao Oct 11, 2020
b98af7a
add testcase for #3436
wenshao Oct 11, 2020
bbf9a14
Fix flaky testcases for issue #2447
MengdiGao Oct 12, 2020
face67e
Fix flaky testcase for issue#2428
MengdiGao Oct 12, 2020
b9bce37
fix flaky ArrayListMultimapTest
MengdiGao Oct 12, 2020
aa45d66
Fix flaky testcases for issue#2430
MengdiGao Oct 12, 2020
d9ac924
Bump junit from 4.12 to 4.13.1
dependabot[bot] Oct 12, 2020
4af4b15
add test cauese for issue3479
blindarcheology Oct 13, 2020
037d32c
Added github actions to test the build
HanSolo Oct 14, 2020
5dd707e
Set surefire plugin to 3.0.0-M5 and reduced build to jdk 8
HanSolo Oct 14, 2020
fe67138
update junit version
wenshao Oct 18, 2020
8d4ac65
code refactor
wenshao Oct 22, 2020
063a3a1
update junit version
wenshao Oct 26, 2020
0ed7edf
mixin support jsoncreator
wenshao Oct 26, 2020
8124e5e
workaround fix reference bug
wenshao Oct 26, 2020
9baa2d5
Fix issue 3493 添加segment的实例类型判断分支
limpidezza Oct 27, 2020
133cca0
Fix flaky test JSONPath_reverse_test
MengdiGao Oct 27, 2020
c6b94c0
Create JSONValidateTest_T1
ZhuXuanyi Oct 29, 2020
8b365c0
add error info, throw exception
wenshao Oct 31, 2020
9384e26
Merge pull request #3507 from limpidezza/fix-issue3493
wenshao Nov 2, 2020
e2ce6bb
bug fixed for ref compute
wenshao Nov 2, 2020
8d94a61
Merge pull request #3512 from ZhuXuanyi/patch-1
wenshao Nov 2, 2020
979148d
Merge pull request #3503 from MengdiGao/fix-test-issue2430
wenshao Nov 2, 2020
1e25425
Merge pull request #3502 from MengdiGao/fix-test-ArrayListMultimap
wenshao Nov 2, 2020
ac97d28
Merge pull request #3501 from MengdiGao/fix-test-issue2428
wenshao Nov 2, 2020
40e4c4d
Merge pull request #3500 from MengdiGao/fix-testcase-issue2447
wenshao Nov 2, 2020
cf59aef
Merge pull request #3492 from HanSolo/github_actions
wenshao Nov 2, 2020
1f1371e
fix testcase
wenshao Nov 2, 2020
9b0fa44
Merge pull request #3488 from alibaba/dependabot/maven/junit-junit-4.…
wenshao Nov 2, 2020
07f1dd2
Merge pull request #3491 from blindarcheology/add-test-cause-issue3479
wenshao Nov 2, 2020
89f42e2
Merge pull request #3484 from Koooooo-7/fix-3469
wenshao Nov 2, 2020
1ccd0f1
Merge pull request #3474 from fanzhongwei/master
wenshao Nov 3, 2020
13f3f2b
jsonpath support mysql syntax
wenshao Nov 5, 2020
ab13b03
improved JSONValidator, fix #3516
wenshao Nov 5, 2020
af60554
refactor
wenshao Nov 5, 2020
37ed66b
1.2.76 init
wenshao Nov 5, 2020
0075d0b
Code maintainability by QualityGate
FAnett1997 Nov 7, 2020
016ddf6
Fix flaky test for issue#3082
MengdiGao Nov 9, 2020
aa53856
Fix flaky test HashMultimapTest
MengdiGao Nov 10, 2020
cd2d5ff
Fix flaky test for issue#1584
MengdiGao Nov 10, 2020
d342dad
Fix flaky tests for FastJsonpHttpMessageConverter
MengdiGao Nov 10, 2020
98c031a
Fix flaky test for TypeUtilsTest
MengdiGao Nov 10, 2020
dc6fb0b
fixed issue3521
hulog Nov 11, 2020
90d591e
improved java.time.Instan & org.joda.time.Instant support. fix #3539
wenshao Nov 14, 2020
8b690ff
bug fix for reference
wenshao Nov 15, 2020
a7f1f5c
improved compatible, fix #3544
wenshao Nov 21, 2020
5b26bee
Merge branch 'fix-test-Issue1584' into fix-test-Issue3082
jmz11 Dec 2, 2020
3ec1a75
Merge branch 'fix-HashMultimapTest' into fix-test-Issue3082
jmz11 Dec 2, 2020
2fa8ee0
Fix issue#3601
github-ganyu Dec 30, 2020
28b674e
Fix issue#3607
github-ganyu Jan 6, 2021
15ac107
Fix issue#3607
github-ganyu Jan 6, 2021
7ac0e06
Merge pull request #3606 from github-ganyu/master
wenshao Jan 7, 2021
b584203
bug fix #3601
wenshao Jan 10, 2021
10a41a2
Update ParserConfig.java
Jadmin3 Jan 13, 2021
be6b536
fix: bugs #3579
Jan 15, 2021
a383623
improved jsonpath support, fix #3629
wenshao Jan 31, 2021
1a4fb9b
improved JSONReader performance, fix #3627
wenshao Jan 31, 2021
62787d9
improved JSONReader performance, fix #3627
wenshao Jan 31, 2021
2baacfb
JSONObject clone return JSONObject
vacuityv Feb 7, 2021
838ebd8
Support JSONPath to read value with explicit type
xiaqingyun Feb 20, 2021
7a79378
fix testcase for issue#3361 which make CI error.
Certseeds Mar 4, 2021
0a99a32
Add build for PR, update checkout to v2.
Certseeds Mar 4, 2021
d7adcc2
Add Github Action Cache for accelerate build.
Certseeds Mar 6, 2021
e4308b7
Merge pull request #3667 from Certseeds/master
wenshao Mar 7, 2021
b04b950
Fix Bug of issue #3652.
Certseeds Mar 8, 2021
f96732b
转json后顺序乱了#3662
eden-yuan Mar 10, 2021
3e2fa45
Fix issue #3671
ruanych Mar 12, 2021
e8ec59e
Add testcase for issuse3671
ruanych Mar 12, 2021
063e3e1
Add files via upload
mpadillatabuenca Mar 16, 2021
349f890
Add files via upload
mpadillatabuenca Mar 17, 2021
cda7ca1
Delete Vista de despliegue.PNG
mpadillatabuenca Mar 17, 2021
75cbe37
Delete Vista de entorno.drawio
mpadillatabuenca Mar 17, 2021
0cd50c1
Delete Vista de escenarios.uxf
mpadillatabuenca Mar 17, 2021
80e3301
Delete Vista de escenarios.png
mpadillatabuenca Mar 17, 2021
333f11f
bug fix for speical fieldName parse, fix #3682
wenshao Mar 21, 2021
3ec5aab
Merge pull request #3678 from Ryyyc/patch-1
wenshao Mar 21, 2021
de72d16
Add OSS-Fuzz status badge
fmeum Mar 22, 2021
e6cc01e
修复JavaBeanDeserializer进行JSON解析时未能正确识别value已是Json字符串,而再次toJSONString()…
yl-yue Mar 23, 2021
732c2a3
improved jdk8 optional support
wenshao Mar 23, 2021
03ede75
autotypeCheck skip LinkedHashMap
wenshao Mar 23, 2021
9b8b186
autotypeCheck skip LinkedHashMap
wenshao Mar 23, 2021
e161fcd
1. 增强JavaBeanDeserializer在转换类型与value类型不匹配时对枚举值的处理
yl-yue Mar 24, 2021
7b59225
Add testcase for 'deserializeUsing' on generic field, #3693
timandy Mar 29, 2021
4370bd2
Fix 'deserializeUsing' on generic field not work, issue #3693
timandy Mar 29, 2021
8fa7aea
1. 优化JavaBeanDeserializer对Json字符串解析实现,只对JSON字符串进行单独处理,其它类型任然走原有实现逻辑
yl-yue Mar 29, 2021
e5514a3
Updated DefaultJSONParser
mpadillatabuenca Apr 2, 2021
dd62699
Merge pull request #3654 from xiaqingyun/master
wenshao Apr 4, 2021
a564237
Merge pull request #3699 from AISS-2021-L8-G03/master
wenshao Apr 4, 2021
911e118
autotypeCheck skip LinkedHashMap
wenshao Apr 4, 2021
f597b8a
Merge branch 'master' of https://github.com/alibaba/fastjson
wenshao Apr 4, 2021
60067f9
revert #3699
wenshao Apr 4, 2021
4b8ed6f
Merge pull request #3697 from timandy/fix-deserializeUsing-on-generic…
wenshao Apr 4, 2021
f3078d6
Merge pull request #3673 from Certseeds/issue3652
wenshao Apr 4, 2021
4065e78
Merge pull request #3621 from Jadmin3/master
wenshao Apr 4, 2021
ccdfe00
improved performance for #3621
wenshao Apr 4, 2021
833fe42
Merge pull request #3669 from Certseeds/githubActionsforPR
wenshao Apr 4, 2021
097c688
Merge pull request #3572 from MengdiGao/fix-test-TypeUtilsTest
wenshao Apr 4, 2021
3f28f52
bug fix for pull request #3621
wenshao Apr 4, 2021
88ba92f
Merge pull request #3615 from Jadmin3/patch-1
wenshao Apr 4, 2021
e59c1be
refactor for #3615
wenshao Apr 4, 2021
1c520a9
Merge pull request #3569 from MengdiGao/fix-test-FastJsonpHttpMessage…
wenshao Apr 4, 2021
6f0e652
Merge pull request #3688 from yl-yue/master
wenshao Apr 4, 2021
ca1b90d
Merge pull request #3676 from eden-yuan/master
wenshao Apr 4, 2021
4d47b44
optimized for #3688
wenshao Apr 4, 2021
bab56ae
bug fixed for PrettyFormat, fix #3672
wenshao Apr 5, 2021
daec680
add testcase for #3579
wenshao Apr 5, 2021
275da29
bug fixed for ThrowableDeserializer, fix #3217
wenshao Apr 5, 2021
6070b10
toJSON support JSONType.serializerFeatures MapSortField & SortField
wenshao Apr 5, 2021
00cdc53
add testcase for issue #3671
wenshao Apr 5, 2021
8d42fd8
improved java.sql.Time support, fix #3637
wenshao Apr 5, 2021
9613771
Merge pull request #3519 from FAnett1997/patch-1
wenshao Apr 5, 2021
e2f9cc6
improved gzip bytes support, fix #3614
wenshao Apr 5, 2021
aa73454
add testcase for #3628
wenshao Apr 5, 2021
ba07c7f
fix #3631
wenshao Apr 5, 2021
4fadfd0
add testcase for #3655
wenshao Apr 5, 2021
dbc4a95
1.2.76
wenshao Apr 5, 2021
14a95cc
1.2.77 init
wenshao Apr 5, 2021
2fafaa1
add testcase for issue #3689
Certseeds Apr 10, 2021
1901698
fix #3689
Certseeds Apr 10, 2021
d6b2f6d
remove irrelevant test
Certseeds Apr 10, 2021
f75aabb
Merge pull request #1 from alibaba/master
lethal233 Apr 17, 2021
4f1496b
fix & testcases for [#3067](https://github.com/alibaba/fastjson/issue…
Apr 17, 2021
65fb33c
modify old testcases when fixing #3638 & #3067
Apr 19, 2021
cbd625b
format code, use hashset to replace if-else,replace magic number.
Certseeds Apr 19, 2021
3dfc699
rename testcases.
Certseeds Apr 21, 2021
61884d1
Update README.md
rootcn Apr 22, 2021
697e152
Fix typo valiateResult -> validateResult
clark-liu Apr 23, 2021
87519b1
Bump commons-io from 1.4 to 2.7
dependabot[bot] Apr 26, 2021
9cd2e11
Bump spring-security-web from 4.2.3.RELEASE to 5.2.10.RELEASE
dependabot[bot] May 12, 2021
d007be7
Update DefaultJSONParser.java
kingom0426 May 12, 2021
db11d2a
Fixed Sonar Issues
MaverickNyk May 14, 2021
d54d159
fix issue 3655
hotaru555 May 22, 2021
4dbbfcf
Fix issue 3796 类的字段过多时,生成的字节码错误
kkkkninezzz Jun 2, 2021
91ef13b
尝试修复 https://github.com/alibaba/fastjson/issues/3805 对应的问题
RLin2015New Jun 15, 2021
813564b
去除冗余内容
RLin2015New Jun 15, 2021
11405d4
fix #3804
GabrielHwang Jun 15, 2021
25398e4
add testcase
GabrielHwang Jun 15, 2021
77fc012
Update README.md
iqiancheng Jun 25, 2021
bd25316
Fix generic field deserialize, issue #3810
hnyyghk Jun 30, 2021
319b890
Merge pull request #3819 from iqiancheng/iqiancheng-patch-1
wenshao Jul 7, 2021
63fd110
Merge pull request #3770 from hotaru555/issue3655
wenshao Jul 7, 2021
db0789f
Merge pull request #3811 from itsVol/fix#3804
wenshao Jul 7, 2021
0f30967
Merge pull request #3763 from MaverickNyk/SonarFix
wenshao Jul 7, 2021
1286bec
Merge pull request #3808 from RLin2015New/issue3805_tryfix
wenshao Jul 8, 2021
8a929a4
Merge pull request #3711 from Certseeds/issue3689
wenshao Jul 8, 2021
0cf6568
Merge pull request #3733 from rootcn/master
wenshao Jul 8, 2021
410abd3
Merge pull request #3737 from clark-liu/master
wenshao Jul 8, 2021
9a27564
Merge pull request #3744 from alibaba/dependabot/maven/commons-io-com…
wenshao Jul 8, 2021
ea03ec8
Merge pull request #3757 from alibaba/dependabot/maven/org.springfram…
wenshao Jul 8, 2021
a6840f3
Bump json-smart from 2.2.1 to 2.4.1
dependabot[bot] Jul 8, 2021
02f5b0a
merge pull request #3661
wenshao Jul 8, 2021
8fe305b
Merge pull request #3832 from alibaba/dependabot/maven/net.minidev-js…
wenshao Jul 10, 2021
96d0ee5
Merge pull request #3826 from hnyyghk/fix-generic-field-deserialize
wenshao Jul 10, 2021
0755694
Merge pull request #3797 from kurisu9az/master
wenshao Jul 10, 2021
0657d1e
Merge pull request #3758 from kingom0426/master
wenshao Jul 10, 2021
3f96301
Merge branch 'master' into patch-1
wenshao Jul 10, 2021
78a98bf
Merge pull request #3684 from fmeum/patch-1
wenshao Jul 10, 2021
3b370ac
Merge pull request #3722 from lethal233/fastjson-lsl
wenshao Jul 10, 2021
5bc4e8b
Merge pull request #3641 from vacuityv/vac-add-clone-feature
wenshao Jul 10, 2021
23070b2
Merge pull request #3538 from hulog/issue3521
wenshao Jul 10, 2021
433398d
Merge pull request #3570 from MengdiGao/fix-test-Issue3082
wenshao Jul 10, 2021
6e956d2
Merge pull request #3530 from MengdiGao/fix-JSONPath_reverse_test
wenshao Jul 10, 2021
4a51ad4
improved blacklist
wenshao Jul 17, 2021
5271d86
improved jsonpath
wenshao Jul 17, 2021
960fa31
fix #3860:Spring+feign中借助FastJsonHttpMessageConverter来使用FastJson,遇到泛型…
deqingLv Aug 3, 2021
3d3becd
Improve Travis CI build Performance
chenzhang22 Aug 18, 2021
b183861
bug fixed for JSONObject/JSONArray.equals
wenshao Aug 23, 2021
84835dd
bug fixed for set list
wenshao Aug 29, 2021
91eaa95
Merge branch 'master' of https://github.com/alibaba/fastjson
wenshao Aug 29, 2021
aab3a1b
add github Java CI
wenshao Aug 29, 2021
c5695ab
use GitHub Actions
robberphex Aug 24, 2021
f10d080
修复jdk9模块化导致的NoClassDefFoundError: java/sql/Timestamp
robberphex Aug 29, 2021
0b269eb
Merge pull request #3878 from RobberPhex/origin
wenshao Aug 29, 2021
8b02d16
Revert "修复jdk9模块化导致的NoClassDefFoundError: java/sql/Timestamp"
wenshao Aug 29, 2021
1da6cf5
Merge pull request #3885 from alibaba/revert-3878-origin
wenshao Aug 29, 2021
751291f
修复jdk9模块化导致的NoClassDefFoundError: java/sql/Timestamp
robberphex Aug 29, 2021
69c0d2a
Merge pull request #3886 from RobberPhex/fix-for-modularity
wenshao Aug 29, 2021
93d8c01
Merge pull request #3875 from YunLemon/Modify_Travis_1
wenshao Aug 29, 2021
8697461
bug fixed for Set[]
wenshao Oct 12, 2021
b1b7a68
bug fixed for MethodInheritanceComparator
wenshao Dec 16, 2021
f33474b
bug fix for MethodInheritanceComparator
wenshao Dec 19, 2021
9130f8e
bug fix for JSONReader.handleResovleTask
wenshao Dec 19, 2021
6460f65
1.2.79 release
wenshao Dec 19, 2021
6841ca7
Removed double semicolon
matteobaccan Jan 24, 2022
e14b1e4
Merge pull request #4025 from matteobaccan/master
wenshao Feb 9, 2022
a73bf25
Bump json-smart from 2.4.1 to 2.4.5
dependabot[bot] Feb 11, 2022
39bc3cb
feat: JSONObject getOrDefault.
Koooooo-7 Mar 21, 2022
aa71e75
JSONField.unwrapped support List Field
wenshao Mar 21, 2022
514d421
Merge pull request #4058 from Koooooo-7/feat-getOrDefault
wenshao Mar 21, 2022
9c9e855
Merge pull request #4037 from alibaba/dependabot/maven/net.minidev-js…
wenshao Mar 22, 2022
7bd661d
update pom.xml test dependency
wenshao Mar 22, 2022
f56b5d8
1.2.80 pom.xml
wenshao Mar 24, 2022
e900eae
fix ci.yaml, remove windows
wenshao Apr 17, 2022
c04ceb9
fix InaccessibleObjectException in jdk17. #4077
hengyunabc Apr 18, 2022
d083cb2
release arthas 1.2.80-fix
hengyunabc Apr 18, 2022
483228a
add release config
hengyunabc Apr 18, 2022
ab82d0b
Merge pull request #4078 from hengyunabc/master
wenshao Apr 20, 2022
0814909
Revert "fix InaccessibleObjectException in jdk17. #4077"
wenshao Apr 20, 2022
a234f9a
Merge pull request #4084 from alibaba/revert-4078-master
wenshao Apr 20, 2022
dd3de5f
fix InaccessibleObjectException in jdk17. #4077
hengyunabc Apr 18, 2022
3f009e1
Merge pull request #4085 from hengyunabc/fix_setAccessible
wenshao Apr 20, 2022
91dd512
Merge pull request #3862 from fatelvde/issue3860
wenshao Apr 28, 2022
560782c
bug fix for autoType
wenshao May 2, 2022
b90ec40
remove unused import
wenshao May 2, 2022
d91c059
improved jdk8 java.time support
wenshao May 2, 2022
097bff1
bug fix for autotype
wenshao May 6, 2022
ae8ac86
1.2.83
wenshao May 23, 2022
eca459e
1.2.84 init
wenshao May 23, 2022
19bd016
fix testcase
wenshao May 24, 2022
7abc84f
fix testcase
wenshao May 24, 2022
b8d88b5
FlyingHighNow Jun 23, 2022
16a43f5
fix build error
wenshao Jun 26, 2022
679140e
fix build error
wenshao Jun 26, 2022
240edb5
fix build error
wenshao Jun 26, 2022
bcd0505
Merge pull request #4218 from FlyingHighNow/master
wenshao Jul 2, 2022
ab65189
update to 2.0.x
wenshao Oct 6, 2022
b297371
update to 2.0.16
wenshao Oct 22, 2022
a3a161a
update to 2.0.18
wenshao Nov 6, 2022
2ef098d
update to 2.0.18
wenshao Nov 6, 2022
d49e707
Update README.md
wenshao Nov 12, 2022
d1bc620
Update README.md
wenshao Nov 12, 2022
0bc1884
Update README.md
wenshao Dec 31, 2022
a34ad79
Update README.md
wenshao Dec 31, 2022
436cae7
Update README.md
wenshao Jan 28, 2023
08dcc85
Update README.md
wenshao Mar 19, 2023
2261016
Update README.md
wenshao Apr 16, 2023
5bc4709
Update README.md
wenshao Apr 16, 2023
c942c83
Update README.md
wenshao May 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Java CI

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, macOS-latest]
java: [8]
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- uses: actions/cache@v2
env:
cache-name: cache-maven-modules
with:
path: ~/.m2/repository
key: ${{ runner.os }}-build-${{ env.cache-name }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}
- name: Test with Maven
run: mvn test -B --file pom.xml
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/target
/.project
/.settings
/.classpath
/.idea
/.DS_Store
*.iml
/src/test/java/com/alibaba/json/bvt/parser/autoType/
/bin/
7 changes: 7 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
tasks:
- init: mvn install -DskipTests=true

vscode:
extensions:
- vscjava.vscode-maven@0.21.0:37ZOg7jK2M04yXsE+ItbZg==
- GabrielBB.vscode-lombok@1.0.0:fYRHVd+UkrccCfjaRz7jKw==
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: java
jdk:
- openjdk8
before_install:
- pip install --user codecov
after_success:
- codecov
branches:
except:
- appveyor

cache:
directories:
- $HOME/.m2
27 changes: 27 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

## Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and their ecosystems, and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.

### How to make a clean pull request

Look for a project's contribution instructions. If there are any, follow them.

- Create a personal fork of the project on Github.
- Clone the fork on your local machine. Your remote repo on Github is called `origin`.
- Add the original repository as a remote called `upstream`.
- If you created your fork a while ago be sure to pull upstream changes into your local repository.
- Create a new branch to work on! Branch from `develop` if it exists, else from `master`.
- Implement/fix your feature, comment your code.
- Follow the code style of the project, including indentation.
- If the project has tests run them!
- Write or adapt tests as needed.
- Add or change the documentation as needed.
- Create a new branch if necessary.
- Push your branch to your fork on Github, the remote `origin`.
- From your fork open a pull request in the correct branch. Target the project's `develop` branch if there is one, else go for `master`!
- Wait for approval.
- Once the pull request is approved and merged you can pull the changes from `upstream` to your local repo and delete
your extra branch(es).

And last but not least: Always write your commit messages in the present tense. Your commit message should describe what the commit, when applied, does to the code – not what you did to the code.
88 changes: 88 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@

# fastjson

[![Java CI](https://github.com/alibaba/fastjson/actions/workflows/ci.yaml/badge.svg?branch=master)](https://github.com/alibaba/fastjson/actions/workflows/ci.yaml)
[![Codecov](https://codecov.io/gh/alibaba/fastjson/branch/master/graph/badge.svg)](https://codecov.io/gh/alibaba/fastjson/branch/master)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.alibaba/fastjson/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.alibaba/fastjson/)
[![GitHub release](https://img.shields.io/github/release/alibaba/fastjson.svg)](https://github.com/alibaba/fastjson/releases)
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/alibaba/fastjson)
[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/fastjson2.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:fastjson2)
[![QualityGate](https://quality-gate.com/backend/api/timeline?branchName=master&projectName=alibaba_fastjson)](https://quality-gate.com/dashboard/branches/7816#overview)

Fastjson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Fastjson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of.

[FASTJSON 2.0.x](https://github.com/alibaba/fastjson2/releases) has been released, faster and more secure, we recommend you [upgrade](https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn) to the latest version.

### Fastjson Goals
* Provide the best performance on the server-side and android client
* Provide simple toJSONString() and parseObject() methods to convert Java objects to JSON and vice-versa
* Allow pre-existing unmodifiable objects to be converted to and from JSON
* Extensive support of Java Generics
* Allow custom representations for objects
* Support arbitrarily complex objects (with deep inheritance hierarchies and extensive use of generic types)

![fastjson](logo.jpg "fastjson")

## Documentation

- [Documentation Home](https://github.com/alibaba/fastjson/wiki)
- [Contributing Code](https://github.com/nschaffner/fastjson/blob/master/CONTRIBUTING.md)
- [Frequently Asked Questions](https://github.com/alibaba/fastjson/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)
- FASTJSON 1.x User Upgrade Guid [https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn](https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn
)

## Benchmark

* Eishay benchmark https://github.com/eishay/jvm-serializers/wiki
* fastjson2 benchmark [https://github.com/alibaba/fastjson2/wiki/fastjson_benchmark](https://github.com/alibaba/fastjson2/wiki/fastjson_benchmark)


## Download

- [maven][1]
- [the latest JAR][2]

[1]: https://repo1.maven.org/maven2/com/alibaba/fastjson/
[2]: https://search.maven.org/remote_content?g=com.alibaba&a=fastjson&v=LATEST

## Maven

```xml
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>2.0.31</version>
</dependency>
```

## Gradle via JCenter

``` groovy
compile 'com.alibaba:fastjson:2.0.28'
```


Please see this [Wiki Download Page][Wiki] for more repository info.

[Wiki]: https://github.com/alibaba/fastjson/wiki#download

### *License*

Fastjson is released under the [Apache 2.0 license](license.txt).

```
Copyright 1999-2020 Alibaba Group Holding Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at the following link.

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
120 changes: 120 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# 漏洞奖励计划
## 报告
如果您认为自己在本程序中发现了任何安全(技术)漏洞,欢迎您通过 https://security.alibaba.com 向我们提交漏洞报告。
如果您报告任何安全漏洞,请注意您可能包含以下信息(合格报告):
* git程序URL地址,运行的环境
* 包含必要屏幕截图的详细说明
* 重现漏洞的步骤以及修复漏洞的建议。
* 其他有用信息

## 处理
ASRC(Alibaba Security Response Center阿里安全响应中心)将尽快审核并回复您的提交内容,并在我们努力修复您提交的漏洞时随时通知您。如有必要,我们可能会与您联系以获取更多信息。


## 条款和条件
1. 仅接受技术漏洞并对其进行评级
2. 出于安全原因,上报者同意与ASRC合作完成他/她提交的漏洞,不向任何第三方透露任何漏洞信息
3. 如果不止一个人报告相同的安全漏洞,奖励将给予完成合格报告的第一个人
4. 为了保护程序的用户,请在修复之前不要直接提交git的issue,也不要在社区讨论任何漏洞信息
5. 所有奖励和声誉积分将提供给仅向ASRC提交其安全漏洞的上报者
6. 安全漏洞奖励的解释权利归ASRC所有

## 收集范围
我们的主要收集漏洞类别是:
* 服务器端请求伪造(SSRF)
* SQL注入
* 拒绝服务攻击
* 远程执行代码(RCE)
* XML外部实体攻击(XXE)
* 访问控制问题(不安全的直接对象参考问题等)
* 敏感目录遍历问题
* 本地文件读取(LFD)
* 敏感信息泄露(密钥,Cookie,Session等)

## 奖励
* 可直接导致严重问题的每个漏洞奖励7000元人民币
* 存在限制及需要一定特殊环境下才能利用的问题将给予700-5600元人民币不等的奖励,比如需要用户主动点击才会触发的问题或需要admin权限
* 只有在指定环境下才可以运行的利用将有可能被收纳但不给予奖励,或直接被忽略,比如只在fastjson+linux特定版本才会出现的问题

## 不在收集范围的报告
* 影响过时浏览器或平台用户的漏洞
* Self-XSS
* 会话固定
* 内容欺骗
* 缺少cookie标记
* 混合内容警告
* SSL / TLS问题
* Clickjacking
* 基于Flash的漏洞
* 反射文件下载攻击(RFD)
* 物理或社会工程攻击
* 未验证自动化工具或扫描仪的结果
* 登录/注销/未认证/低影响CSRF
* 需要MITM或物理访问用户设备的攻击
* 与网络协议或行业标准相关的问题
* 不能用于直接攻击的错误信息泄露
* 缺少与安全相关的HTTP标头等





# Vulnerability Reward Program
## Reporting
If you believe you have found any security (technical) vulnerability in the Program, you are welcome to submit a vulnerability report to us at https://security.alibaba.com
In the case of reporting any security vulnerability, please note that you may include the following information (Qualified Reporting):
* The git program URL and running version
* A detailed description with applicable screenshots
* Steps to reproduce the vulnerability/exploit and your advice to fix it
* Other useful information


## Processing
ASRC (Alibaba Security Response Center) will review and respond as quickly as possible to your submission, and keep you informed as we work to fix the vulnerability you submitted. We may contact you for further information, if necessary.


## Terms and Conditions
1. ONLY technical vulnerabilities will be accepted and rated.
2. For security reasons, reporters agree to cooperate with ASRC exclusively on the vulnerability he/she submitted and not disclose any information of vulnerability to any third-parties.
3. In the case that more than one person report the same security vulnerability, the reward will be given to the first person who accomplish a Qualified Reporting.
4. To protect users of the program, please do not directly submit issue on github or discuss anything with the community.
5. All Rewards and Reputation Credits are given to the reporters who submit his/her security vulnerabilities ONLY to ASRC.
6. All rights for the security vulnerability rewards are reserved by ASRC.

## Scope of Collecting
The main categories of vulnerabilities that we are sincerely looking for are:
* Server-Side Request Forgery (SSRF)
* SQL Injection
* Denial of Service Attack
* Remote Code Execution (RCE)
* XML External Entity Attacks (XXE)
* Access Control Issues (Insecure Direct Object Reference issues, etc.)
* Directory Traversal Issues
* Local File Disclosure (LFD)
* Sensitive Information Leakage (Key, Cookie, Session etc.)

## Reward
* $1,000 for one valid report
* $100-$800 for Vuls which is limited. For example, Vuls that need user interactions or administrator authority
* Vuls which only work on the special version will be accepted but no reward, or directly rejected. For example, Vul runs only on a special linux version

## Ineligible Reports
* Vulnerabilities affecting users of outdated browsers or platforms
* "Self" XSS
* Session fixation
* Content Spoofing
* Missing cookie flags
* Mixed content warnings
* SSL/TLS best practices
* Clickjacking/UI redressing
* Flash-based vulnerabilities
* Reflected file download attacks (RFD)
* Physical or social engineering attacks
* Unverified Results of automated tools or scanners
* Login/logout/unauthenticated/low-impact CSRF
* Attacks requiring MITM or physical access to a user's device
* Issues related to networking protocols or industry standards
* Error information disclosure that cannot be used to make a direct attack
* Missing security-related HTTP headers which do not lead directly to a vulnerability


Loading