Skip to content

Commit 061aafa

Browse files
varomodtcopybara-github
authored andcommitted
Documentation change.
PiperOrigin-RevId: 868232886
1 parent 5b5b92b commit 061aafa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

content/programming-guides/json.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,25 @@ represented by the string `"3.1s"` in the special case handling. When that
369369
}
370370
```
371371

372+
Message types with special JSON encodings include:
373+
374+
- `google.protobuf.Any`
375+
- `google.protobuf.BoolValue`
376+
- `google.protobuf.BytesValue`
377+
- `google.protobuf.DoubleValue`
378+
- `google.protobuf.Duration`
379+
- `google.protobuf.FieldMask`
380+
- `google.protobuf.FloatValue`
381+
- `google.protobuf.Int32Value`
382+
- `google.protobuf.Int64Value`
383+
- `google.protobuf.ListValue`
384+
- `google.protobuf.StringValue`
385+
- `google.protobuf.Struct`
386+
- `google.protobuf.Timestamp`
387+
- `google.protobuf.UInt32Value`
388+
- `google.protobuf.UInt64Value`
389+
- `google.protobuf.Value`
390+
372391
Note that `google.protobuf.Empty` is not considered to have any special JSON
373392
mapping; it is simply a normal message that has zero fields. This means the
374393
expected representation of an `Empty` packed into an `Any` is `{"@type":

0 commit comments

Comments
 (0)