0

I want to add a Json object to ConnectionRequest as value without key. I know that if use standard addArgument(key,value) -

addArgument("json","{JsonObject}")

in the body of request will be

json={JsonObject}

But I need to add only JsonObject without key and "=" symbol.

{JsonObject}

Is there any standard solution? One more question Is there any class in Lwuit to create JsonObject similar to json.org.me Thanks

Shai Almog
  • 51,749
  • 5
  • 35
  • 65
AzizD
  • 103
  • 10

1 Answers1

0

Sure, just override

protected void buildRequestBody(OutputStream os)

And write whatever you want into the output stream. Don't use the arguments this will replace them anyway.

Shai Almog
  • 51,749
  • 5
  • 35
  • 65
  • Thanks, I've copied almost half of the methods of ConecctionReauest.class to a new class and override buildRequestBody to not to lose old functionality and to get what i wanted. – AzizD Mar 14 '12 at 04:28