func jsonType(v interface{}) string {
	switch v.(type) {
	case nil:
		return "null"
	case bool:
		return "boolean"
	case json.Number, float64, int, int32, int64:
		return "number"
	case string:
		return "string"
	case []interface{}:
		return "array"
	case map[string]interface{}, *OrderedMap:
		return "object"
	}
	panic(InvalidJSONTypeError(fmt.Sprintf("%T", v)))
}
// jsonType returns the json type of given value v.
//
// It panics if the given value is not valid json value
jsonType returns the json type of given value v.

It panics if the given value is not valid json value
// jsonType returns the json type of given value v . // // It panics if the given value is not valid json value
func jsonType(v interface{}) string {
	switch v.(type) {
	case nil:
		return "null"
	case bool:
		return "boolean"
	case json.Number, float64, int, int32, int64:
		return "number"
	case string:
		return "string"
	case []interface{}:
		return "array"
	case map[string]interface{}, *OrderedMap:
		return "object"
	}
	panic(InvalidJSONTypeError(fmt.Sprintf("%T", v)))
}
func jsonType ( v interface { } ) string { switch v . ( type ) { case nil : return " " case bool : return " " case json . Number , float64 , int , int32 , int64 : return " " case string : return " " case [ ] interface { } : return " " case map [ string ] interface { } , * OrderedMap : return " " } panic ( InvalidJSONTypeError ( fmt . Sprintf ( " " , v ) ) ) }
jsonType returns the json type of given value v.
jsonType returns the json type of given value v .