BCv26 Json Data New Features

Simplified JSON Data Access with Microsoft BC26 new methods

Working with JSON data just got easier! in the previous BC versions accessing JSON required using a JsonToken to read the data. But with the release of BC v26, Microsoft has introduced an updated API that streamlines this process.

The new API includes a set of methods designed to retrieve JSON data directly, eliminating the need to always rely on JsonToken. This enhancement simplifies development and makes working with JSON more efficient than ever before.

If you’re working with JSON in your applications, this update is making your code cleaner, faster, and easier to maintain. Don’t miss out on exploring the new features in BC v26!

MS Link:

https://learn.microsoft.com/en-us/dynamics365/release-plan/2025wave1/smb/dynamics365-business-central/overloaded-jsonobject-data-type-getvalue-method

Business value

To work more efficiently with JSON in AL, we have improved the AL API for accessing JSON data with a new set of overloaded JsonObject GetValue methods.

Feature details

We have improved the API for accessing JSON data with a new set of methods that will avoid always having to read data through a JsonToken.

Example:

I have a Json file, below code showing the old way and the new way.

Figure 1: Json file content


I have added a simple action to Customer list page to read the Json file for this

Figure 2: Old way 


Figure 3: New way (BCvc26) simple and short


Try this next time when you are working with Json data. I would like to hear what your thought on this, comment below.


Comments

Popular Posts