Commit 13f901e5 authored by Mathieu Giraud's avatar Mathieu Giraud

core/output.cpp: getout(), returns a non-escaped string

parent 9426c9a9
......@@ -5,7 +5,10 @@
string getout(json v)
return v.is_null() ? NULL_VAL : v ;
if (v.is_null()) return NULL_VAL ;
if (v.is_number()) return string_of_int(v) ;
if (v.is_string()) return v;
return v.dump();
string Output::get(string key)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment