@UseDataProvider("collectionsOfComplexObjectsForConvertToJson") @Test public void convertsCollectionsOfComplexObjectsToJson(Collection<Object> objects) throws Exception { JsonValue jsonValue = JsonGenerator.createJsonArray(objects); assertTrue(jsonValue.isArray()); assertionHelper.assertThatJsonArrayHasAllItemsFromCollection(objects, jsonValue); }
public static JsonValue createJsonArray(Collection<?> collection) throws JsonException { if (collection == null) { return new NullValue(); } return createJsonValue(collection, COLLECTION); }
JsonGenerator { public static JsonValue createJsonArray(Collection<?> collection) throws JsonException { if (collection == null) { return new NullValue(); } return createJsonValue(collection, COLLECTION); } }
JsonGenerator { public static JsonValue createJsonArray(Collection<?> collection) throws JsonException { if (collection == null) { return new NullValue(); } return createJsonValue(collection, COLLECTION); }  }
JsonGenerator { public static JsonValue createJsonArray(Collection<?> collection) throws JsonException { if (collection == null) { return new NullValue(); } return createJsonValue(collection, COLLECTION); }  static JsonValue createJsonArray(Collection<?> collection); static JsonValue createJsonArray(Object array); static JsonValue createJsonObjectFromMap(Map<String, ?> map); static JsonValue createJsonObject(Object object); }
JsonGenerator { public static JsonValue createJsonArray(Collection<?> collection) throws JsonException { if (collection == null) { return new NullValue(); } return createJsonValue(collection, COLLECTION); }  static JsonValue createJsonArray(Collection<?> collection); static JsonValue createJsonArray(Object array); static JsonValue createJsonObjectFromMap(Map<String, ?> map); static JsonValue createJsonObject(Object object);  }