libjson: added printing support (thanks spew)

This commit is contained in:
cinap_lenrek 2015-12-22 18:12:56 +01:00
parent f6e8b115d4
commit a53ae2782a
4 changed files with 127 additions and 12 deletions

View file

@ -4,6 +4,8 @@
typedef struct JSONEl JSONEl;
typedef struct JSON JSON;
#pragma varargck type "J" JSON*
enum {
JSONNull,
JSONBool,
@ -33,3 +35,5 @@ JSON* jsonparse(char *);
void jsonfree(JSON *);
JSON* jsonbyname(JSON *, char *);
char* jsonstr(JSON *);
int JSONfmt(Fmt*);
void JSONfmtinstall(void);