Both are one and the same :
v4 is the default filter family that is supported
set firewall ?
Possible completions:
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
> atm-policer Atm policer
> family Protocol family
> filter Define an IPv4 firewall filter
The family family-name statement is required only to specify a protocol family other than IPv4. To configure an IPv4 firewall filter, you can configure the filter at the [edit firewall] hierarchy level without including the family inet statement, because the [edit firewall] and [edit firewall family inet] hierarchy levels are equivalent.
You can use below link for reference:
Please mark this as accepted solution, if you think it solves your question