@@ -0,0 +1,968 @@
+package com.wizzardo.http.response;%0A%0Aimport com.wizzardo.epoll.readable.ReadableBuilder;%0Aimport com.wizzardo.epoll.readable.ReadableData;%0Aimport com.wizzardo.http.ReadableByteArrayPool;%0Aimport com.wizzardo.http.ReadableByteArrayPool.PooledReadableByteArray;%0Aimport com.wizzardo.tools.json.JsonTools;%0A%0A/**%0A * Created by wizzardo on 26/05/16.%0A */%0Apublic class JsonResponseHelper %7B%0A%0A    public static ReadableData renderJson(Object o) %7B%0A        PooledReadableByteArray%5B%5D holder = new PooledReadableByteArray%5B1%5D;%0A        ReadableBuilder builder = new ReadableBuilder();%0A        JsonTools.serialize(o, () -%3E %7B%0A            PooledReadableByteArray buffer = ReadableByteArrayPool.get();%0A            holder%5B0%5D = buffer;%0A            return buffer.bytes();%0A        %7D, (buffer, offset, length) -%3E %7B%0A            PooledReadableByteArray byteArray = holder%5B0%5D;%0A            byteArray.length(length);%0A            builder.append(byteArray);%0A        %7D);%0A        return builder;%0A    %7D%0A%0A%7D%0A

add JsonResponseHelper