JSON Serialization Performance

Don't flush when the Jackson UTF8 buffer is full but when the http stream flushes
Fix flaky tests, that rely on HasMap order (Java7 vs. Java8)
Merge pull request #3646 from jexp/json-serialization-performance

JSON Serialization Performance
Merge branch '2.0-maint' into 2.1-maint