Index: base/json/json_writer.cc |
diff --git a/base/json/json_writer.cc b/base/json/json_writer.cc |
index 65317724dba7102670cb3f75a72bc0bea982578a..193142c45436ef740df1bf89df5eecea76fa18ec 100644 |
--- a/base/json/json_writer.cc |
+++ b/base/json/json_writer.cc |
@@ -114,6 +114,14 @@ void JSONWriter::BuildJSONString(const Value* const node, |
break; |
} |
+ case Value::TYPE_BINARY: |
Scott Byer
2011/05/24 23:40:32
If StringValue works with the constructed form str
|
+ { |
+ const BinaryValue* data = static_cast<const BinaryValue*>(node); |
+ std::string value(data->GetBuffer(), data->GetSize()); |
+ JsonDoubleQuote(value, true, json_string_); |
+ break; |
+ } |
+ |
case Value::TYPE_LIST: |
{ |
json_string_->append("["); |