MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / FromString

Function FromString

pkg/util/json/json.go:1892–1894  ·  view source on GitHub ↗

FromString returns a JSON value given a string.

(v string)

Source from the content-addressed store, hash-verified

1890
1891// FromString returns a JSON value given a string.
1892func FromString(v string) JSON {
1893 return jsonString(v)
1894}
1895
1896// FromBool returns a JSON value given a bool.
1897func FromBool(v bool) JSON {

Callers 4

jsonNodeMethod · 0.92
AsJSONFunction · 0.92
ParseMethod · 0.92
MakeJSONFunction · 0.70

Calls 1

jsonStringTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…