MCPcopy
hub / github.com/tidwall/gjson / parseLiteral

Function parseLiteral

gjson.go:745–754  ·  view source on GitHub ↗
(json string, i int)

Source from the content-addressed store, hash-verified

743}
744
745func parseLiteral(json string, i int) (int, string) {
746 var s = i
747 i++
748 for ; i < len(json); i++ {
749 if json[i] < 'a' || json[i] > 'z' {
750 return i, json[s:i]
751 }
752 }
753 return i, json[s:]
754}
755
756type arrayPathResult struct {
757 part string

Callers 3

parseObjectFunction · 0.85
parseArrayFunction · 0.85
parseAnyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…