241
Hello,
Business Central does not currently support JSON parameters or return types for codeunit web services.
For webservice calls, I have to receive JSON serialized text and then parse the JSON object as one text element of the JSON body.
For outputs, I have to assemble my JSON object and then use JsonObject.WriteTo(Text) to create a serialized a text return value. I then have to parse that text back to JSON in the system calling the web service.
It is very difficult to sell Business Central's interface capabilities when ECMA-404 The JSON Data Interchange Standard was introduced in 1999, has been widely adopted in the 2000's, and **still** isn't inherently supported by Business Central in 2021.
Please don't hesitate to contact me for more details to make this feature standard in future releases.
Sincerely,
Kieran Sweeney
Business Central does not currently support JSON parameters or return types for codeunit web services.
For webservice calls, I have to receive JSON serialized text and then parse the JSON object as one text element of the JSON body.
For outputs, I have to assemble my JSON object and then use JsonObject.WriteTo(Text) to create a serialized a text return value. I then have to parse that text back to JSON in the system calling the web service.
It is very difficult to sell Business Central's interface capabilities when ECMA-404 The JSON Data Interchange Standard was introduced in 1999, has been widely adopted in the 2000's, and **still** isn't inherently supported by Business Central in 2021.
Please don't hesitate to contact me for more details to make this feature standard in future releases.
Sincerely,
Kieran Sweeney
STATUS DETAILS
Needs Votes

Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team