Is there a way, in golang, to see if I can distinguish a json field from a null value from a json field that is not there when it is not bound to a structure? Because both set the value in the struct to nil, but I need to know if this field was for starters, and to make sure someone set it to null.
{ "somefield1":"somevalue1", "somefield2":null }
VS
{ "somefield1":"somevalue1", }
Both jsons will be zero if they are not combined into a structure. Any useful resources will be greatly appreciated!
json null struct go
Nighthee
source share