MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / String

Method String

tools/types/json_raw.go:21–24  ·  view source on GitHub ↗

String returns the current JSONRaw instance as a json encoded string.

()

Source from the content-addressed store, hash-verified

19
20// String returns the current JSONRaw instance as a json encoded string.
21func (j JSONRaw) String() string {
22 raw, _ := j.MarshalJSON()
23 return string(raw)
24}
25
26// MarshalJSON implements the [json.Marshaler] interface.
27func (j JSONRaw) MarshalJSON() ([]byte, error) {

Callers 15

ValueMethod · 0.95
TestJSONRawUnmarshalJSONFunction · 0.95
TestJSONArrayStringFunction · 0.45
TestJSONMapMarshalStringFunction · 0.45
TestJSONRawStringFunction · 0.45
TestNowDateTimeFunction · 0.45
TestParseDateTimeFunction · 0.45
TestDateTimeAddFunction · 0.45
TestDateTimeAddDateFunction · 0.45
TestDateTimeStringFunction · 0.45
TestDateTimeValueFunction · 0.45

Calls 1

MarshalJSONMethod · 0.95

Tested by 11

TestJSONRawUnmarshalJSONFunction · 0.76
TestJSONArrayStringFunction · 0.36
TestJSONMapMarshalStringFunction · 0.36
TestJSONRawStringFunction · 0.36
TestNowDateTimeFunction · 0.36
TestParseDateTimeFunction · 0.36
TestDateTimeAddFunction · 0.36
TestDateTimeAddDateFunction · 0.36
TestDateTimeStringFunction · 0.36
TestDateTimeValueFunction · 0.36