Building a JSON Wrapper in AL for Business Central

Опубликовано: 24 Июль 2026
на канале: Stefan Maron
115
4

In this live coding session, Stefan builds a JSON wrapper codebase unit in AL for Business Central — abstracting the verbose, multi-step JSON token handling that AL requires into clean, fluent get/set calls. The stream covers implementing typed get functions (text, integer, decimal, boolean, date, and more), iterating over JSON arrays with for-each loops, and constructing nested JSON objects and arrays using a more readable syntax. The finished wrapper lives on GitHub and is ready to drop into your own BC projects.

Business Central development with Stefan Maron — practical AL programming, tools, and real-world patterns.

🔴 Join me live:    / @stefanmaron  

Chapters:
0:00 - Introduction and setup
2:19 - Overview of JSON example and current JSON handling in AL
5:25 - Creating a new code unit for JSON object
10:39 - Implementing get functions for different data types
25:52 - Iterating over JSON arrays
41:51 - Building out additional functions (add, set, remove)
1:05:39 - Creating nested arrays and objects
1:24:45 - Implementing init object functionality
1:32:52 - Demonstrating the new JSON construction syntax
1:39:41 - Testing array handling and final adjustments
1:43:52 - Recap and conclusion

GitHub:
https://github.com/StefanMaron/JsonWr...

---

About Me:
I'm Stefan Maron, a Microsoft Business Central developer and community contributor. I build tools like LinterCop and BC.Ntfy, and stream live coding sessions on this channel.
  / stefan-maron  
https://github.com/StefanMaron
https://stefanmaron.com

Music by Harris Heller
Stream Beats:    / @streambeats3908