cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edison Su <>
Subject RE: JSON Question
Date Wed, 06 Feb 2013 23:13:57 GMT
AFAIK, there is no other component using JSON-RPC in CloudStack, maybe you can try,
add the following in your pom file:


From: Mike Tutkowski []
Sent: Wednesday, February 06, 2013 1:48 PM
To: Edison Su
Subject: Re: JSON Question

Thanks, Edison!

So, now I can serialize and de-serialize data to and from the JSON format.

My next question is the following:  Do we already have a library in place in CloudStack that
lets us make use of JSON-RPC?  Perhaps Gson allows for this?

I'm thinking I'd like something similar to the following, but I'm not sure what the "norm"
is in CloudStack:

JsonRpcHttpClient client = new JsonRpcHttpClient(

    new URL(""));

User user = client.invoke("createUser", new Object[] { "bob", "the builder" }, User.class);

On Tue, Feb 5, 2013 at 4:28 PM, Edison Su <<>>
You can add:

Into your maven pom file, then use gson right away.

> -----Original Message-----
> From: Mike Tutkowski [<>]
> Sent: Tuesday, February 05, 2013 3:21 PM
> To:<>
> Subject: JSON Question
> Hi everyone,
> I'm writing a storage plug-in and have gotten to the point where I need to
> make a call out to our SAN to dynamically create storage for a Compute or
> Disk Offering.
> Our SAN's API talks JSON.
> Do we already make use of JSON inside of the Management Server?  I expect
> we use it in other parts of the system, but want to make sure I'm leveraging
> the right component(s) when I start writing this API code.
> Thanks!
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e:<>
> o: 303.746.7302<tel:303.746.7302>
> Advancing the way the world uses the
> cloud<>
> *(tm)*

Mike Tutkowski
Senior CloudStack Developer, SolidFire Inc.
o: 303.746.7302
Advancing the way the world uses the cloud<>(tm)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message