test for null input name in json serialization