Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
9 subscribers
Views
2805 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Conversion of a long integer value using a!fromJson
hiteshd
Certified Lead Developer
over 8 years ago
Hi All,
We are facing an issue while using a!fromJson to convert restful service response which has an element of type number and its value is greater than 2,147,483,647 ( max value for a 4 byte integer). It is not getting mapped. It works fine if the value is less than the max value for a 4 byte integer.
Is this a known limitation of this function or my understanding is not correct? And if this is a limitation, what is the workaround for this apart from changing the type of the element from number to string on the service response side.
Thanks.
Hitesh
OriginalPostID-273166
Discussion posts and replies are publicly visible
Parents
0
Jasmin
over 8 years ago
Hi Hitesh, if it would be helpful , You can access integer key element using a!jsonpath() function .
load(
local!json: "{""name"":""John Smith"", ""number"":2147114836471222 , ""likes"":[""green""]}",
local!result: a!jsonPath(
local!json,
"number"
),
local!result
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Jasmin
over 8 years ago
Hi Hitesh, if it would be helpful , You can access integer key element using a!jsonpath() function .
load(
local!json: "{""name"":""John Smith"", ""number"":2147114836471222 , ""likes"":[""green""]}",
local!result: a!jsonPath(
local!json,
"number"
),
local!result
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data