Home
last modified time | relevance | path

Searched refs:ToJson (Results 1 – 5 of 5) sorted by relevance

/external/protobuf/src/google/protobuf/util/
Djson_util_test.cc70 string ToJson(const Message& message, const JsonOptions& options) { in ToJson() function in google::protobuf::util::__anon566b7c2a0111::JsonUtilTest
96 EXPECT_EQ("{\"messageValue\":{}}", ToJson(m, options)); in TEST_F()
102 ToJson(m, options)); in TEST_F()
108 EXPECT_EQ("{}", ToJson(m, options)); in TEST_F()
133 ToJson(m, options)); in TEST_F()
166 EXPECT_EQ("{\"stringMap\":{\"hello\":1234}}", ToJson(message, options)); in TEST_F()
168 ASSERT_TRUE(FromJson(ToJson(message, options), &other)); in TEST_F()
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DFieldMaskPartial.cs56 internal static string ToJson(IList<string> paths, bool diagnosticOnly) in ToJson() method in Google.Protobuf.WellKnownTypes.FieldMask
120 return ToJson(Paths, true); in ToDiagnosticString()
DDurationPartial.cs197 internal static string ToJson(long seconds, int nanoseconds, bool diagnosticOnly) in ToJson() method in Google.Protobuf.WellKnownTypes.Duration
241 return ToJson(Seconds, Nanos, true); in ToDiagnosticString()
DTimestampPartial.cs199 internal static string ToJson(long seconds, int nanoseconds, bool diagnosticOnly) in ToJson() method in Google.Protobuf.WellKnownTypes.Timestamp
238 return ToJson(Seconds, Nanos, true); in ToDiagnosticString()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonFormatter.cs543 writer.Write(Timestamp.ToJson(seconds, nanos, DiagnosticOnly)); in WriteTimestamp()
551 writer.Write(Duration.ToJson(seconds, nanos, DiagnosticOnly)); in WriteDuration()
557 writer.Write(FieldMask.ToJson(paths, DiagnosticOnly)); in WriteFieldMask()