| 163 | } |
| 164 | |
| 165 | bool ProtoJsonFormat::PrintToFastString(const Message& message, std::string* output) { |
| 166 | Json::Value root; |
| 167 | WriteToValue(message, &root); |
| 168 | Json::FastWriter writer; |
| 169 | output->assign(writer.write(root)); |
| 170 | return true; |
| 171 | } |
| 172 | |
| 173 | static bool SetSingleValueForMessage(const Reflection* reflection, |
| 174 | Message* pb, |