MCPcopy
hub / github.com/pocketbase/pocketbase / ParseJSONRaw

Function ParseJSONRaw

tools/types/json_raw.go:14–18  ·  view source on GitHub ↗

ParseJSONRaw creates a new JSONRaw instance from the provided value (could be JSONRaw, int, float, string, []byte, etc.).

(value any)

Source from the content-addressed store, hash-verified

12// ParseJSONRaw creates a new JSONRaw instance from the provided value
13// (could be JSONRaw, int, float, string, []byte, etc.).
14func ParseJSONRaw(value any) (JSONRaw, error) {
15 result := JSONRaw{}
16 err := result.Scan(value)
17 return result, err
18}
19
20// String returns the current JSONRaw instance as a json encoded string.
21func (j JSONRaw) String() string {

Callers 4

TestParseJSONRawFunction · 0.92
PrepareValueMethod · 0.92
DBExportMethod · 0.92
processInternalRequestFunction · 0.92

Calls 1

ScanMethod · 0.95

Tested by 1

TestParseJSONRawFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…