Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tidwall/gjson
/ functions
Functions
214 in github.com/tidwall/gjson
⨍
Functions
214
◇
Types & classes
9
Function
init
()
gjson.go:2921
Function
modDig
(json, arg string)
gjson.go:3598
Function
modFlatten
@flatten an array with child arrays. [1,[2],[3,4],[5,[6,7]]] -> [1,2,3,4,5,[6,7]] The {"deep":true} arg can be provide for deep flattening. [1,[2
gjson.go:3055
Function
modFromStr
@fromstr converts a string to json "{\"id\":1023,\"name\":\"alert\"}" -> {"id":1023,"name":"alert"}
gjson.go:3237
Function
modGroup
(json, arg string)
gjson.go:3251
Function
modJoin
@join multiple objects into a single object. [{"first":"Tom"},{"last":"Smith"}] -> {"first","Tom","last":"Smith"} The arg can be "true" to specify
gjson.go:3164
Function
modKeys
@keys extracts the keys from an object. {"first":"Tom","last":"Smith"} -> ["first","last"]
gjson.go:3100
Function
modPretty
@pretty modifier makes the json look nice.
gjson.go:2973
Function
modReverse
@reverse reverses array elements or root object members.
gjson.go:3005
Function
modThis
@this returns the current element. Can be used to retrieve the root element.
gjson.go:2995
Function
modToStr
@tostr converts a string to json {"id":1023,"name":"alert"} -> "{\"id\":1023,\"name\":\"alert\"}"
gjson.go:3247
Function
modUgly
@ugly modifier removes all whitespace.
gjson.go:3000
Function
modValid
@valid ensures that the json is valid before moving on. An empty string is returned when the json is not valid, otherwise it returns the original json
gjson.go:3227
Function
modValues
@values extracts the values from an object. {"first":"Tom","last":"Smith"} -> ["Tom","Smith"]
gjson.go:3128
← previous
201–214 of 214, ranked by callers