allow parsing multiple nodes from a json layout

This commit is contained in:
Michael Stapelberg
2013-12-14 16:25:54 +01:00
parent 6800524f2e
commit ef7b3e5464
2 changed files with 41 additions and 0 deletions

View File

@ -421,6 +421,8 @@ void tree_append_json(const char *filename) {
#endif
/* Allowing comments allows for more user-friendly layout files. */
yajl_config(hand, yajl_allow_comments, true);
/* Allow multiple values, i.e. multiple nodes to attach */
yajl_config(hand, yajl_allow_multiple_values, true);
yajl_status stat;
json_node = focused;
to_focus = NULL;