s;
>
> Thanks.
>
> On Mon, Oct 30, 2017 at 4:39 PM, Gayan Chamara <gaya...@wso2.com> wrote:
>
>> Hi,
>> Is there a way to convert JSON string into ballerina json type in
>> ballerina 0.89? I couldn't find a suitable method in the docs.
>>
>> Thanks,
add the followin
> to your pom file,
> org.wso2.carbon.apimgt
> org.wso2.carbon.apimgt.ballerina.native
> as a new dependency, and you should be able to use the above method as
> usual.
>
> Reagards.
>
> On Mon, Oct 30, 2017 at 6:02 PM, Gayan Chamara <gaya...
tem;
> import ballerina.lang.jsons;
>
> function main(string[] args) {
> string s1 = "{'ab':'ddd'}";
> json jsonVal = s1;
> system:println(jsonVal);
> string s2 = jsons:toString(jsonVal);
> system:println(s2);
> }
>
> Thanks,
>
> Anup
Hi,
Is there a way to convert JSON string into ballerina json type in ballerina
0.89? I couldn't find a suitable method in the docs.
Thanks,
Gayan.
--
Regards,
*Gayan Chamara*
*Software Engineering Intern*
*WSO2 Inc.*
*Email: gaya...@wso2.com <gaya...@wso2.com> *
*Mobile : **+94 71 72
OfTheArray = jsons:getInt ( jsonArray , "$.length()");
>
> where you only have to include the folloeing import,
>
> import ballerina.lang.jsons;
>
>
> It worked for me.
>
> Regards.
>
>
> On Wed, Oct 25, 2017 at 11:42 AM, Gayan Chamara <gaya...@
Hi,
Is lengthof operator available in ballerina 0.89? I tried it but it gives
an error ( invalid identifier 'lengthof'). if not, how can I check the
length of an json array?
Thanks,
Gayan.
--
Regards,
*Gayan Chamara*
*Software Engineering Intern*
*WSO2 Inc.*
*Email: gaya...@wso2.com <g