Index: lib/Values_cpp.template |
diff --git a/lib/Values_cpp.template b/lib/Values_cpp.template |
index 1b5cdfee227b082b3d3f3850589054af6278e497..8fe128ef4880566f8a0964119e5d8570bab12398 100644 |
--- a/lib/Values_cpp.template |
+++ b/lib/Values_cpp.template |
@@ -93,14 +93,6 @@ bool Value::asSerialized(String*) const |
return false; |
} |
-String Value::toJSONString() const |
-{ |
- StringBuilder result; |
- StringUtil::builderReserve(result, 512); |
- writeJSON(&result); |
- return result.toString(); |
-} |
- |
void Value::writeJSON(StringBuilder* output) const |
{ |
DCHECK(m_type == TypeNull); |
@@ -112,6 +104,14 @@ std::unique_ptr<Value> Value::clone() const |
return Value::null(); |
} |
+String Value::serialize() |
+{ |
+ StringBuilder result; |
+ StringUtil::builderReserve(result, 512); |
+ writeJSON(&result); |
+ return result.toString(); |
+} |
+ |
bool FundamentalValue::asBoolean(bool* output) const |
{ |
if (type() != TypeBoolean) |