# Jason problim help

**URL:** <https://forum.p4.org/t/jason-problim-help/1397>\
**Category:** Uncategorized\
**Created:** [October 30, 2025, 11:46pm UTC](https://forum.p4.org/t/jason-problim-help/1397 "2025-10-30T23:46:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![haider.ali.etcn12](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@haider.ali.etcn12](https://forum.p4.org/u/haider.ali.etcn12)\
**Post date:** [October 30, 2025, 11:46pm UTC](https://forum.p4.org/t/jason-problim-help/1397/1 "2025-10-30T23:46:29Z")

</div>

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$

---

<div class="post-metadata">

**Author:** ![andyfingerhut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/andyfingerhut/32/17_2.png) [@andyfingerhut](https://forum.p4.org/u/andyfingerhut)\
**Post date:** [October 31, 2025, 4:44pm UTC](https://forum.p4.org/t/jason-problim-help/1397/2 "2025-10-31T16:44:04Z")

</div>

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](https://github.com/p4lang/p4c/issues/5412#issuecomment-3470865340)
