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