how to print a list of names?

Hello ,
I want to print all my firewall rules to see which websites I’m rejecting
this is what I did :

foreach i in=[ip firewall filter get value-name=content number=[find where action=reject]] do={:put $i}

but I get error :

invalid internal item number

and when I do this :

:put [/ip firewall filter find where action=reject]

I get :

*4a;*4b;*4c;*16;*17;*18;*19;*21;*22;*23;*24;*25;*26;*27;*28;*29;*2a;*2b;*2c;*2d;*2e;*2f;*30;*31;*32;*33;*34;*35;*36;*37;*38;*39;*3a;*3b;*3c;*3d;*3e;*3f;*40;*41

What am I doing wrong, what am I missing?

Thanks ,

:foreach i in=[ip firewall filter find where action=reject] do={:put [/ip firewall filter get $i content]}

from memory, not tested, but should give you a direction to go in.

understand my mistake

Thanks !