public static String toJSONString(Object object, SerializerFeature... features) {
        return toJSONString(object, DEFAULT_GENERATE_FEATURE, features);
    }
This method serializes the specified object into its equivalent Json representation. Note that this method works fine if the any of the object fields are of generic type,
just the object itself should not be of a generic type. If you want to write out the object to a
{@link Writer}, use {@link #writeJSONString(Writer, Object, SerializerFeature[])} instead.

@param object the object for which json representation is to be created setting for fastjson
@return Json representation of {@code object}.
src/main/java/com/alibaba/fastjson/JSON.java