MCPcopy Create free account
hub / github.com/algolia/cli / String

Method String

pkg/cmdutil/json_value.go:23–29  ·  view source on GitHub ↗

String returns the string representation of the JSON object.

()

Source from the content-addressed store, hash-verified

21
22// String returns the string representation of the JSON object.
23func (j *JSONValue) String() string {
24 b, err := json.Marshal(j.Value)
25 if err != nil {
26 return "failed to marshal object"
27 }
28 return string(b)
29}
30
31// Set parses the JSON string into the value.
32func (j *JSONValue) Set(s string) error {

Callers 11

DedentFunction · 0.45
AddDeleteByParamsFlagsFunction · 0.45
AddIndexSettingsFlagsFunction · 0.45
Test_FlagValuesMapFunction · 0.45
anonymousIDFunction · 0.45
NewEventMetadataFunction · 0.45
PrintMethod · 0.45

Calls

no outgoing calls

Tested by 3

Test_FlagValuesMapFunction · 0.36