mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-20 05:53:06 +01:00
feat: improve python actions (#1083)
This commit is contained in:
@@ -15,8 +15,8 @@ type Request struct {
|
||||
IsBase64Encoded bool `json:"isBase64Encoded"`
|
||||
}
|
||||
|
||||
// isJSON checks if the data is JSON.
|
||||
func isJSON(data []byte) bool {
|
||||
// IsJSON checks if the data is JSON.
|
||||
func IsJSON(data []byte) bool {
|
||||
var msg json.RawMessage
|
||||
|
||||
return json.Unmarshal(data, &msg) == nil
|
||||
|
||||
Reference in New Issue
Block a user