Json how to get proper Value

R3dNeX90R3dNeX90 Member Posts: 5
Hallo All,

we have the following Issue: We want to retrieve from Google API the Longitude. The Longitude what we ask should be 6.990940399999999.

we created a function which should get this Value, so far so good, but it retrieves this: 6.9909404. But we need to retrieve the full string.

The Code how we will return this Value is:

LOCAL GetValueAsText(JObject : DotNet "Newtonsoft.Json.Linq.JObject";PropertyName : Text) ReturnValue : Text
IF NOT ISNULL(JObject.GetValue(PropertyName)) THEN
ReturnValue := JObject.GetValue(PropertyName).ToString;

if someone could help, it would be nice.

Answers

  • krikikriki Member, Moderator Posts: 9,112
    [Topic moved from 'NAV Tips & Tricks' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.