about summary refs log tree commit diff
path: root/src/libutil/json.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/json.cc')
-rw-r--r--src/libutil/json.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/json.cc b/src/libutil/json.cc
index ecc3fdfe514e..6023d1d4fb84 100644
--- a/src/libutil/json.cc
+++ b/src/libutil/json.cc
@@ -44,6 +44,16 @@ void toJSON(std::ostream & str, long n)
     str << n;
 }
 
+void toJSON(std::ostream & str, unsigned int n)
+{
+    str << n;
+}
+
+void toJSON(std::ostream & str, int n)
+{
+    str << n;
+}
+
 void toJSON(std::ostream & str, double f)
 {
     str << f;