Skip to content

Commit fb5c4fb

Browse files
Google APIscopybara-github
authored andcommitted
feat(spanner): add JSON type
PiperOrigin-RevId: 381156241
1 parent c4d3151 commit fb5c4fb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

google/spanner/v1/type.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,13 @@ enum TypeCode {
128128
// <br>`[+-][Digits].Digits[ExponentIndicator[+-]Digits]`
129129
// <br>(ExponentIndicator is `"e"` or `"E"`)
130130
NUMERIC = 10;
131+
132+
// Encoded as a JSON-formatted 'string' as described in RFC 7159. The
133+
// following rules will be applied when parsing JSON input:
134+
// - Whitespace will be stripped from the document.
135+
// - If a JSON object has duplicate keys, only the first key will be
136+
// preserved.
137+
// - Members of a JSON object are not guaranteed to have their order
138+
// preserved. JSON array elements will have their order preserved.
139+
JSON = 11;
131140
}

0 commit comments

Comments
 (0)