Json formatter now can add newline character if specified.

It can be useful for streaming json messages to some transport, like logstash.
Json formatter can now build field mappings.

Also json formatter benchmark has been updated.
Code style.