MCPcopy Index your code
hub / github.com/go-openapi/jsonpointer / DecodedTokens

Method DecodedTokens

pointer.go:92–99  ·  view source on GitHub ↗

DecodedTokens returns the decoded (unescaped) tokens of this JSON pointer.

()

Source from the content-addressed store, hash-verified

90
91// DecodedTokens returns the decoded (unescaped) tokens of this JSON pointer.
92func (p *Pointer) DecodedTokens() []string {
93 result := make([]string, 0, len(p.referenceTokens))
94 for _, token := range p.referenceTokens {
95 result = append(result, Unescape(token))
96 }
97
98 return result
99}
100
101// IsEmpty returns true if this is an empty json pointer.
102//

Callers 3

OffsetMethod · 0.95
TestDecodedTokensFunction · 0.80
TestDashToken_RoundTripFunction · 0.80

Calls 1

UnescapeFunction · 0.85

Tested by 2

TestDecodedTokensFunction · 0.64
TestDashToken_RoundTripFunction · 0.64