MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / FixJSONNumbers

Method FixJSONNumbers

db/revision.go:389–393  ·  view source on GitHub ↗

Version of FixJSONNumbers (see base/util.go) that operates on a Body

()

Source from the content-addressed store, hash-verified

387
388// Version of FixJSONNumbers (see base/util.go) that operates on a Body
389func (body Body) FixJSONNumbers() {
390 for k, v := range body {
391 body[k] = base.FixJSONNumbers(v)
392 }
393}
394
395func CreateRevID(generation int, parentRevID string, body Body) (string, error) {
396 // This should produce the same results as TouchDB.

Callers 1

BenchmarkUnmarshalBodyFunction · 0.80

Calls 1

FixJSONNumbersFunction · 0.92

Tested by 1

BenchmarkUnmarshalBodyFunction · 0.64