Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

NEED a util/JSONStringer class #4

Closed
ashtoash opened this issue May 29, 2012 · 5 comments
Closed

NEED a util/JSONStringer class #4

ashtoash opened this issue May 29, 2012 · 5 comments

Comments

@ashtoash
Copy link

如题

@wenshao
Copy link
Member

wenshao commented May 29, 2012

能不能把问题描述清楚一些?

@ashtoash
Copy link
Author

就是在构造一些不跟任何bean关联的json的时候用的工具类,有object(),key(),value(),endObject()之类的方法.
没有这个类的话直接用JSONObject构造挺不方便的,又不想为了用这个类再引入另一个json包.

觉得应该有这么个类的啊,难道是名字不同我没找到?

@wenshao
Copy link
Member

wenshao commented Jun 1, 2012

新增加了JSONWriter,不知道是不是你所需要的,测试代码看这里:
https://github.com/AlibabaTech/fastjson/blob/master/src/test/java/com/alibaba/json/bvt/JSONWriterTest.java

@wenshao
Copy link
Member

wenshao commented Jun 1, 2012

@ashtoash
Copy link
Author

ashtoash commented Jun 1, 2012

恩,没错就是这个 thumb

@ashtoash ashtoash closed this as completed Jun 1, 2012
wenshao pushed a commit that referenced this issue Apr 25, 2016
wenshao pushed a commit that referenced this issue May 31, 2017
wenshao pushed a commit that referenced this issue Oct 24, 2017
asa1997 pushed a commit to Be-Secure/fastjson that referenced this issue Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants