bareos: master 71f51db9
Author | Committer | Branch | Timestamp | Parent | |
---|---|---|---|---|---|
joergs | mvwieringen | master | 2015-06-30 19:00 | master 7d739f07 | Pending |
Changeset | Allow to specify arrays in JSON output structure Before, the JSON output handled arrays implicitly. The result was partly unexpected behavior, like some data was overwritten when adding several nameless objects. The new version destinguishes between * named objects (object_start(NAME)) * can be added to objects (named and nameless objects) * nameless objects (object_start(NULL)) * can be added to arrays * arrays (array_start(NAME)) * can be added by name to an object * contain nameless objects (object_start(NULL)) The JSON result root element is now an object. It has been an array before, but external tools (bareos-webui) normally only evaluate the first array element. |
||||
mod - src/cats/sql.c | Diff File | ||||
mod - src/cats/sql_list.c | Diff File | ||||
mod - src/dird/ua_cmds.c | Diff File | ||||
mod - src/dird/ua_dotcmds.c | Diff File | ||||
mod - src/lib/output_formatter.c | Diff File | ||||
mod - src/lib/output_formatter.h | Diff File |