I think it's a java object. I think we need to use something like gson here
On Thu, Jan 19, 2017 at 1:30 PM, Kishanthan Thangarajah <[email protected] > wrote: > Can we have the json object to investigate this? > > On Thu, Jan 19, 2017 at 6:22 PM, SajithAR Ariyarathna <[email protected]> > wrote: > >> +{UUF Team] >> >> On Thu, Jan 19, 2017 at 5:34 PM, Indunil Upeksha Rathnayake < >> [email protected]> wrote: >> >>> Hi, >>> >>> Having some problem when using sendToClient() method in the UUF Server >>> Side JS API. I am trying to send an array with a set of map elements as in >>> [1] including some boolean values. When we are sending this value to client >>> side using the sendToClient(), it's injecting the variables to the "js" >>> placeholder in the layout. But when evaluating the variable, boolean values >>> are not stored as it is but as follows. >>> *function Boolean() { [native code] }* >>> >>> Seems like in there, it's getting the value of >>> "booleanVaribale.constructor". I'm using uuf version "1.0.0-m9". Is >>> this expectable or an issue? >>> >>> [1] [ {"claimURI":"http://wso2.org/claims/givenname >>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org%2Fclaims%2Fgivenname&sa=D&sntz=1&usg=AFQjCNHhpHtMY1eVUFZfM8A2n2iOnajUvg> >>> ","required":"function Boolean() { [native code] }"}, >>> {"claimURI":"http://wso2.org/claims/lastname >>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org%2Fclaims%2Flastname&sa=D&sntz=1&usg=AFQjCNGDQuIZMXiN8WMbgitjy9uIJ_jKDw> >>> ","required":"function Boolean() { [native code] }"}] >>> >>> Thanks and Regards >>> -- >>> Indunil Upeksha Rathnayake >>> Software Engineer | WSO2 Inc >>> Email [email protected] >>> Mobile 0772182255 >>> >> >> >> >> -- >> Sajith Janaprasad Ariyarathna >> Software Engineer; WSO2, Inc.; http://wso2.com/ >> <https://wso2.com/signature> >> > > > > -- > *Kishanthan Thangarajah* > Technical Lead, > Platform Technologies Team, > WSO2, Inc. > lean.enterprise.middleware > > Mobile - +94773426635 <+94%2077%20342%206635> > Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>* > Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>* > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail : [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
