-
Notifications
You must be signed in to change notification settings - Fork 6.5k
SerializerFeature_BrowserCompatible
温绍锦 edited this page Dec 9, 2018
·
1 revision
在JavaScript中,整数必须在-9007199254740991~9007199254740991之间,如果超过这个范围,会被阶段。为了绕开这个限制,在对客户端输出整数可能超出这个范围时,使用SerializerFeature.BrowserCompatible。
String str = JSON.toJSONString(obj, SerializerFeature.BrowserCompatible);
JSON.DEFAULT_GENERATE_FEATURE |= SerializerFeature.QuoteFieldNames.getMask();
如有需要修改本注脚,请联系阿里巴巴,
© Alibaba Fastjson Develop Team
注明: 版权所有阿里巴巴,请注明版权所有者
If you need to amend this footnote, please contact Alibaba.
© Alibaba Fastjson Develop Team
Note: Copyright Alibaba, please indicate the copyright owner