MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / decodeJSONNumber

Function decodeJSONNumber

pkg/util/json/encode.go:291–297  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

289}
290
291func decodeJSONNumber(b []byte) ([]byte, JSON, error) {
292 b, d, err := encoding.DecodeUntaggedDecimalValue(b)
293 if err != nil {
294 return b, nil, err
295 }
296 return b, jsonNumber(d), nil
297}
298
299func decodeJSONValue(e jEntry, b []byte) ([]byte, JSON, error) {
300 switch e.typCode {

Callers 2

decodeMethod · 0.85
decodeJSONValueFunction · 0.85

Calls 2

jsonNumberTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…