Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/keploy/keploy
/ IsJSON
Function
IsJSON
pkg/util.go:3603–3606 ·
view source on GitHub ↗
(body []byte)
Source
from the content-addressed store, hash-verified
3601
}
3602
3603
func
IsJSON(body []byte) bool {
3604
var
js
interface
{}
3605
return
json.Unmarshal(body, &js) == nil
3606
}
3607
3608
func
IsXML(data []byte) bool {
3609
var
xm xml.Name
Callers
7
renderSingleFailedTest
Method · 0.92
match
Method · 0.92
ExactBodyMatch
Method · 0.92
buildHTTPMismatchReport
Method · 0.92
Diff
Method · 0.92
redactBody
Function · 0.92
GuessContentType
Function · 0.85
Calls
1
Unmarshal
Method · 0.80
Tested by
no test coverage detected