| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sending JSONObject or JSONArray from Flex
Hi There,
I am trying to pass a set of values from Flex to Java either as JSONObject or JSONArray in an HTTPService. But I could not figure out how to do this. Can anyone let me know some samples on how to build a JSONObject or JSONArray in Flex which can be sent as an HTTPService. Also please show me some samples on how to receive the same in a Java based web application. I am trying something like this in my java code. @Path("/datareceive") public class DataReceive { @PUT @Consumes("application/json") public String putProduct(JSONObject jsonEntity) throws JSONException { System.out.println(jsonEntity.length()); return ""; } } For example I am trying to pass Product values that are selected by user in Flex to Java. Can someone help me on this? Thanks Krishnan |
![]() |
| Viewing: Tutorialized Forums > Web Design & Development > Adobe Flex > Sending JSONObject or JSONArray from Flex |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|