diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-11-17 11:39:00 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2021-11-17 16:01:30 +0100 |
| commit | a8dfd147a0373fb0430ec3bf3499a952ee6f593a (patch) | |
| tree | 233a90c9052cc3e1ec2f52ab9fba9f9ad5cec998 /lib/json.h | |
| parent | 30f0195d0ad5391a94118a832d35ee853bb21b88 (diff) | |
lib: add vty_json() helper
... this is copypasted all over the codebase & should've been a helper
to begin with really.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/json.h')
| -rw-r--r-- | lib/json.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/json.h b/lib/json.h index fe208f4fa9..cad2d65f5d 100644 --- a/lib/json.h +++ b/lib/json.h @@ -59,6 +59,7 @@ extern struct json_object *json_object_lock(struct json_object *obj); extern void json_object_free(struct json_object *obj); extern void json_array_string_add(json_object *json, const char *str); + #define JSON_STR "JavaScript Object Notation\n" /* NOTE: json-c lib has following commit 316da85 which |
