Jason problim help

hello everyone
i really need a help i am facing a problem with convert my p4 code to a json file
every time i’m getting a different problem

haider@haider:~/Desktop/p4-l2-switch-project$ p4c -I /usr/local/share/p4c/p4include --target bmv2 --arch v1model l2_learning_switch.p4 -o l2_learning_switch.json
l2_learning_switch.p4(31): [–Werror=not-found] error: standard_metadata: declaration not found
standard_metadata.egress_spec = port;
^^^^^^^^^^^^^^^^^
l2_learning_switch.p4(38): [–Werror=not-found] error: standard_metadata: declaration not found
standard_metadata.egress_spec = port;
^^^^^^^^^^^^^^^^^
l2_learning_switch.p4(51): [–Werror=not-found] error: _drop: declaration not found
_drop;
^^^^^
haider@haider:~/Desktop/p4-l2-switch-project$

I believe the same question was asked on this Github issue, and a couple of people have replied there. Adding a link to it here for anyone that wants to follow along, or join in: I cannot convert my P4 file to Jason File · Issue #5412 · p4lang/p4c · GitHub