package hdsv2 import "encoding/json" func isJSON(s string) bool { var js map[string]interface{} return json.Unmarshal([]byte(s), &js) == nil }