diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2016-10-06 16:34:28 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2016-10-06 17:00:52 +0200 |
commit | b0f7f9c98f2b54e34e9344f817d30363533d108f (patch) | |
tree | 3e27bfd456a89fbbbb4c558d62a341f2eed575cf /src/libutil/json.hh | |
parent | ae522f930d69c5b80c13cd6596919d57ea971b88 (diff) |
toJSON(): Support some more types
Diffstat (limited to 'src/libutil/json.hh')
-rw-r--r-- | src/libutil/json.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/json.hh b/src/libutil/json.hh index aec456845..03eecb732 100644 --- a/src/libutil/json.hh +++ b/src/libutil/json.hh @@ -12,6 +12,8 @@ void toJSON(std::ostream & str, const char * s); void toJSON(std::ostream & str, unsigned long long n); void toJSON(std::ostream & str, unsigned long n); void toJSON(std::ostream & str, long n); +void toJSON(std::ostream & str, unsigned int n); +void toJSON(std::ostream & str, int n); void toJSON(std::ostream & str, double f); void toJSON(std::ostream & str, bool b); |