Code

store: Added a generic JSON formatter.
authorSebastian Harl <sh@tokkee.org>
Fri, 31 Oct 2014 17:48:34 +0000 (18:48 +0100)
committerSebastian Harl <sh@tokkee.org>
Fri, 31 Oct 2014 17:48:34 +0000 (18:48 +0100)
It works by consuming single objects of any type (host, service, metric,
attribute) at a time and appending their JSON serialization to a string
buffer. The current position in the object tree is recorded in an internal
state.

A helper function is provided on top of the base formatter which allows to
handle an full object at a time.


No differences found