public static void toJson(Object object, OutputStream out) throws IOException {
        toJson(object, out, true);
    }
Parses the specified object to JSON and prints it to the specified 
stream. The following objects are supported:
<ul>
     <li>{@code Map<String, Object>}
     <li>{@code List<Object>}
     <li>{@code String}
     <li>{@code Double}
     <li>{@code Long}
     <li>{@code null}
</ul>
<p>
This method will output a nicely formatted JSON string (with spaces and
new-lines).

@param object  the object to parse
@param out     the stream to write the result to

@throws IllegalArgumentException  if the inputed object is of or contains
                                  unsupported types
@throws IOException               if the stream could not be written to
common-parent/json/src/main/java/com/speedment/common/json/Json.java