use of springfox.documentation.spring.web.json.Json in project fastjson by alibaba.
the class SwaggerJsonSerializer method write.
public //
void write(//
JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException {
SerializeWriter out = serializer.getWriter();
Json json = (Json) object;
String value = json.value();
out.write(value);
}
use of springfox.documentation.spring.web.json.Json in project fastjson by alibaba.
the class JsonValueTest method test_0.
public void test_0() throws Exception {
Json json = new Json("\"{\"id\":1001\"}");
String text = JSON.toJSONString(json);
Assert.assertEquals("\"{\"id\":1001\"}", text);
}
Aggregations