web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Create JSON using C/AL in NAV 2016

(0) ShareShare
ReportReport
Posted on by 1,144

Hi,

How do I create a JSON file thru C/AL Code in NAV 2016 Database ?

Kindly inform.

Thanks,

Subrata

I have the same question (0)
  • Community Member Profile Picture
    on at

    You Need to use .net for this as in NAV we can Consume Jason but to write we need to use .net.

  • Suggested answer
    RockwithNav Profile Picture
    8,991 Super User 2026 Season 1 on at

    You need to use Odata.

  • Suggested answer
    Community Member Profile Picture
    on at

    You can download Latest CU of Indian version which has export JSON inbuilt on Posted Sales Invoice or to push your data in web service you can use this URL docs.microsoft.com/.../how-to--use-odata-to-return-obtain-a-json-document

    From 13R2 systems have newtonsoft dll inbuilt so call dotnet variables of that.

    5025.JsonFile.txt

    Sample File :

    {

     "DocumentNo": "101009",

     "Address": {

       "Address1": "Slovenska ccsta 127",

       "City": "MEMA Ljubljana d.o.o."

     },

     "ItemDetails": [

       {

         "ItemNo": "1976-W",

         "PrName": "INNSBRUCK Storage Unit/W.Door"

       },

       {

         "ItemNo": "1964-W",

         "PrName": "INNSBRUCK Storage Unit/G.Door"

       }

     ]

    }

    //Code to Create File in attachment

  • Suggested answer
    ArturV Profile Picture
    225 on at

    Use the JSON Management codeunit.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,922 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,078 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 628 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans