summaryrefslogtreecommitdiff
path: root/src/support/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/json.h')
-rw-r--r--src/support/json.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/support/json.h b/src/support/json.h
index bc880f382..c005543f6 100644
--- a/src/support/json.h
+++ b/src/support/json.h
@@ -54,6 +54,8 @@ struct Value {
Ref& operator[](IString x) { return (*this->get())[x]; }
};
+ template<typename T> static Ref make(T t) { return Ref(new Value(t)); }
+
enum Type {
String = 0,
Number = 1,