class JsonValueDecoder {

    public static Serializable decode(final ByteBuf in) {
        int valueType = DataTypesCodec.readUnsignedInt1(in);
        StringBuilder result = new StringBuilder();
        decodeValue(valueType, 1, in, result);
        return result.toString();
    }

}