public void testCustomNamesArraysPrettyPrint() throws JSONException {
final JSONObject jo = new TestJSONObject();
final JSONRenderer.Options opt = renderer.options();
opt.withArraysForChildren(true).withIndent(2).withChildrenKey("KIDS").withChildNameKey("KID.NAME");
final DespacedRendering r = new DespacedRendering(renderer.prettyPrint(jo, opt));
r.expect(
"-nl-_string_:_thisstring_,-nl-_int_:12,-nl-_long_:42,-nl-_boolean_:true,",
"_array_:[-nl-true,-nl-_hello_,-nl-52,-nl-212-nl-]-nl-,",
"-nl-_KIDS_:[-nl-{-nl-_KID.NAME_:_k0_,-nl-_name_:_k0_",
"-nl-_thisis_:_k0_-nl-},-nl-{-nl-_KID.NAME_:_k1_,-nl-_name_:_k1_,-nl-_thisis_:_k1_-nl-}-nl-]"
);