jsontype.go
jsontype.go - Overview
This file defines a utility function GetJSONFieldType
that determines the JSON type of a given interface{} value.
Detailed Documentation
GetJSONFieldType
Purpose: Determines the JSON type of an interface{} value.
Parameters:
v
(interface{}): The value to determine the JSON type of.
Returns:
string
: A string representing the JSON type of the input value. Possible values are:ObjectType
,ArrayType
,StringType
,IntegerType
,NumberType
,BooleanType
,NullType
, andUnknownType
.