diff --git a/src/org/redkale/net/http/Rest.java b/src/org/redkale/net/http/Rest.java index 69903f008..f7fe2e9de 100644 --- a/src/org/redkale/net/http/Rest.java +++ b/src/org/redkale/net/http/Rest.java @@ -129,7 +129,7 @@ public final class Rest { static JsonConvert createJsonConvert(RestConvert[] converts) { if (converts == null || converts.length < 1) return JsonConvert.root(); - final JsonFactory childFactory = JsonFactory.root().createChild(); + final JsonFactory childFactory = JsonFactory.create(); List types = new ArrayList<>(); for (RestConvert rc : converts) { if (types.contains(rc.type())) throw new RuntimeException("@RestConvert type(" + rc.type() + ") repeat");