Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

How to declare JSON Object in NAV17

(0) ShareShare
ReportReport
Posted on by 20

Hello,

I'm about to downgrade Business Central AL Solution to C/AL Nav17 and i'm facing problems when declaring these variables.

Jobject: JsonObject

Jtoken: JsonToken

and i can't use these selected methods as it consider them unvalid (unknown methods) :
pastedimage1666259218912v3.png
pastedimage1666259387967v4.png
pastedimage1666259483717v5.png
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,036 Super User 2024 Season 2 on at
    RE: How to declare JSON Object in NAV17

    Hi, hope the following helps.

    https://andreilungu.com/create-simple-json-file-in-nav/

       

    https://forum.mibuso.com/discussion/73260/json-management-nested-jobjects

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: How to declare JSON Object in NAV17

    NAV 2017 does not have any native Json support. So you will either have to use a .net class / dll or format is as a text with out any json tool.

    You can probably use this one and declear it as a .net variable

    www.newtonsoft.com/json

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans