// IsJSON returns true if the given byte slice contains valid JSON data.
// You can access the results by utilizing the RawMessage returned.
IsJSON returns true if the given byte slice contains valid JSON data.
You can access the results by utilizing the RawMessage returned.
// IsJSON returns true if the given byte slice contains valid JSON data . // You can access the results by utilizing the RawMessage returned .
func IsJSON(data []byte) (bool, error, *json.RawMessage) {
	delayedResult := new(json.RawMessage)
	err := json.Unmarshal(data, delayedResult)
	return err == nil, err, delayedResult
}
func IsJSON ( data [ ] byte ) ( bool , error , * json . RawMessage ) { delayedResult := new ( json . RawMessage ) err := json . Unmarshal ( data , delayedResult ) return err == nil , err , delayedResult }
IsJSON returns true if the given byte slice contains valid JSON data.
IsJSON returns true if the given byte slice contains valid JSON data .