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

UnQuoteFieldNames_cn

高铁 edited this page Jan 11, 2017 · 1 revision
Map map = Collections.singletonMap("value", 123);

String json = JSON.toJSONString(map
        , SerializeConfig.globalInstance
        , new SerializeFilter[0]
        , null
        , JSON.DEFAULT_GENERATE_FEATURE & ~SerializerFeature.QuoteFieldNames.mask
);
assertEquals("{value:123}", json);
Clone this wiki locally