Remove iterator from JsonObject

Iterating over the names of a JsonObject is better done using

    for( String name : jsonObject.names() ) {
      ...
    }
Improve write performance by omitting array copies

Do not create intermediate arrays for writing arrays and objects.