Hi Yashira,

You can use registry.content() method. i.e.

var content = registry.content(*'/_system/governances/file'*);
*var *json = JSON.parse(content);


On Wed, Apr 22, 2015 at 6:36 PM, Yashira Perera <[email protected]> wrote:

> Hi all,
>
> I have implemented a jaggery program which used to take contents from the
> Registry. but once i retrieve the content it was like [B@3fe7fd75 .(byte
> format)
>
> The resource on registry is in json format and i used osgi
> service(org.wso2.carbon.registry.core.service.RegistryService) to add and
> retrieve the resource. My question is how to get the resource content as
> json format?
>
> Thanks
>
> --
> *Yashira Perera*
> *Software Engineer *
> *WSO2, Inc : * http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +9471 716 6797
>



-- 

*Ruchira Wageesha**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com <http://wso2.com>*

*email: [email protected] <[email protected]>,   blog:
ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>,
mobile: +94 77 5493444*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to