author | Sebastian Harl <sh@tokkee.org> | |
Fri, 31 Oct 2014 17:48:34 +0000 (18:48 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 31 Oct 2014 17:48:34 +0000 (18:48 +0100) | ||
commit | 7e192f00497c9837856530d2ca5559ec86715502 | |
tree | 9aed4cdd9d52138ffa1bcec1ab407c621c3d395c | tree | snapshot |
parent | 794d7a5a42401a5bf0645b36162c3d05fbd81a99 | commit | diff |
store: Added a generic JSON formatter.
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.
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.
src/Makefile.am | diff | blob | history | |
src/core/store-private.h | diff | blob | history | |
src/core/store_json.c | [new file with mode: 0644] | blob |
src/include/core/store.h | diff | blob | history |