From 62f8f9e4ee066ecb562de7969180a07cb3d41f57 Mon Sep 17 00:00:00 2001
From: cheliequan <liequanche@126.com>
Date: 星期二, 17 一月 2023 16:40:22 +0800
Subject: [PATCH] 增加根据protobuf转json函数 template <class T> bool bus_dbapi_get_json( T &list, string &json)

---
 util.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/util.cpp b/util.cpp
index 26a0dda..dcfa0eb 100644
--- a/util.cpp
+++ b/util.cpp
@@ -32,7 +32,7 @@
 
 bool proto_to_json(const google::protobuf::Message &message, std::string &json) {
     google::protobuf::util::JsonPrintOptions options;
-    options.add_whitespace = true;
+    options.add_whitespace = false;
     options.always_print_primitive_fields = true;
     options.preserve_proto_field_names = true;
 

--
Gitblit v1.8.0