Hi Experts, In this article i am learning & sharing with you guys that how to Create Json structure in Business Central. In this example, i am creating Json structure from Customer table and store that Json file in local system. Codeunit 50101 "Json Write" { trigger OnRun () var Customer_Rec: Record Customer; JObject_Cust: JsonObject ; JObject_Address: JsonObject ; JArray_Address: JsonArray ; JObject_PostingGroup: JsonObject ; JArray_PostingGroup: JsonArray ; RecTempBlob: Record TempBlob; InStr: InStream ; OutStr: OutStream ; FileName: Text ; Result: Text ; begin // Code to Create Json file Structure_Start ...
A hub of all my NAV/Business Central Codes.