MCPcopy Create free account
hub / github.com/dolthub/doltgresql / decodeJSONNumber

Function decodeJSONNumber

postgres/parser/json/encode.go:305–311  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

303}
304
305func decodeJSONNumber(b []byte) ([]byte, JSON, error) {
306 b, d, err := encoding.DecodeUntaggedDecimalValue(b)
307 if err != nil {
308 return b, nil, err
309 }
310 return b, jsonNumber(d), nil
311}
312
313func decodeJSONValue(e jEntry, b []byte) ([]byte, JSON, error) {
314 switch e.typCode {

Callers 2

decodeMethod · 0.85
decodeJSONValueFunction · 0.85

Calls 2

jsonNumberTypeAlias · 0.85

Tested by

no test coverage detected