The current `fromJSON` function only supports parameters of type string. If I pass a parameter of type *string, it throws an error.