How to get Integer type from functions

9 views
Skip to first unread message

Fan Su

unread,
Oct 3, 2016, 8:58:42 PM10/3/16
to JsonPath
Hi Everyone,

I am wondering is there a way to get Integer type from functions? instead of Double type.

Here is example. If I do $.count.sum(), I will get 6.0 instead of 6. Do we have way to get 6 instead?
{
    "count": [1,2,3]
}

Thanks in advance,

Fan Su
Reply all
Reply to author
Forward
0 new messages