alibaba / alibaba/fastjson2

fastjson2序列化大JSON

Open
#2,091 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

### 请描述您的问题
*询问有关本项目的使用和其他方面的相关问题。*

目前使用的是版本是:2.0.43 版本。

我有一个2G的JSON文件,里面存的是集合:List,
我的想法是把文件内容字符读出来,再用fastjson 去对这个json字符串格式化,
我想用fastjson2来序列化这个json,我收到的是oom的错误,能用什么方式去读取这个json文件并序列化呢?
我在wiki 里面并没有找到这些说明,希望能解答,谢谢

Contributor guide

Open the contributing guide

Research direction

The issue names no source files or tests; begin with the fastjson2 wiki and the reported 2.0.43 usage scenario. Document guidance for processing a 2 GB List JSON without requiring the whole string in memory, and explain what usage is supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.