[infinispan-issues] [JBoss JIRA] (ISPN-9444) Support native JSON in scripts

Galder Zamarreño (JIRA) issues at jboss.org
Tue Aug 21 08:04:01 EDT 2018


Galder Zamarreño created ISPN-9444:
--------------------------------------

             Summary: Support native JSON in scripts
                 Key: ISPN-9444
                 URL: https://issues.jboss.org/browse/ISPN-9444
             Project: Infinispan
          Issue Type: Enhancement
            Reporter: Galder Zamarreño


E.g.

{code}
// mode=local,language=javascript,datatype='text/plain; charset=utf-8'
var addr = cacheManager.getAddress();
{address: addr}
{code}

{code}
// mode=local,language=javascript,datatype='application/json;type=java.lang.String'
cache.put({k: "բարեվ"}, {v: "բարեվ"});
cache.get({k: "բարեվ"});
{code}

{code}
// mode=local,language=javascript,datatype='application/json; charset=utf-8'
var s = cache.size();
var st = cache.getStatus();
{size: s, status: st}
{code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the infinispan-issues mailing list