-3
votes
3answers
35 views
Android :Parsing Json File in Android [closed]
I have json file. I quite new in Android platform. So, Would you guys please give code sample or examples. So, that I can understand the json parsing. I tried lot's of examples.But, It wasn't helpful ...
3
votes
1answer
20 views
Spring @RequestBody containing a list of different types (but same interface)
Let's say that I have a domain class :
public class Zoo{
private List<Animal> animals;
....
where an Animal is an interface with different implementations (Cat,Dog). Let's ...
0
votes
1answer
4k views
Uploading files via JSON Post request to a Web Service provided by Teambox
Please refer to(looks pretty simple documentation): https://teambox.com/api/upload
The parameters I am suppose to pass as JSON are:
{
"page_id": 456,
"project_id": 123,
"name": "Name",
...
1
vote
2answers
34 views
Deserialize json with different object types
I get the following json from a httpresponse
{
"result": "success",
"team_registration": {
"current_status": "executed",
"expiration_time": "2012-07-18T21:29:43Z",
"id": 609,
...
0
votes
1answer
12 views
Jenkins Plug-in - Post-build Step - with many config options
I'm currently working on a Jenkins plug-in which is a post-build step (extends hudson.tasks.Builder). I make use of both global.jelly & config.jelly within the matching resources directory ...
1
vote
1answer
47 views
Getting 411 response code while getting JSON Response
In my application, I am trying get the response using POST request. The response server is sending me in Json format. But after adding the properties, it is returning me the response code as 411 (i.e ...
17
votes
9answers
7k views
0
votes
1answer
29 views
Jackson - Processing JSON with multiple types
Say I have a JSON file that looks like this:
{
"response" : [
{
"id" : "10",
"period" : "month",
"values" : [
{
"value" : 100,
...
1
vote
1answer
26 views
Mule JSON data to objects
I have a json object
data = {
'ad': {
"date":"2013-06-05",
"catagory":"6",
"subcatagory":"5",
"text":"John john",
"ssn":"1306743999",
"email":"[email protected]",
...
-1
votes
1answer
30 views
Struts 2 - Interceptor reset the response JSON Object
I am using Struts 2 in my web application. I write code to check user session into interceptor but while I am returning net.sf.json.JSONObject as response, its reset the response object and set null ...
0
votes
1answer
40 views
Multipart JSON POST request
please read my post:
I need to post the image to the JSON WS with this parameters:
Content-Type: multipart/related; boundary="foo_bar_baz"
Content-Length: {number_of_bytes_in_entire_request_body} -- ...
0
votes
2answers
19 views
Error JSON object SyntaxError: JSON Parse error: Unterminated string withSpring MVC
Help me Please.
JSON object SyntaxError: JSON Parse error: Unterminated string
JAVA code
@RequestMapping(value = "getMessage.htm")
public @ResponseBody String getStatusServer(ModelMap model, ...
1
vote
1answer
27 views
Need to change my code to generate correct JSON object
I am trying to generate the following JSON to be accessed by tokenInput, but my code generates it in other way, how can I tailor the code to generate the correct JSON.
Required Json
...
2
votes
3answers
4k views
Json object from database in java
Can anyone help me how to create a JSON Object from the database.
This is what the JSON output should look like.
{“devicelist”:{
“device”: [
{“id”: “01”, “type”: “CAM”, “name”: “Livingroom”}
...
0
votes
4answers
33 views
JSONObject : Why JSONObject changing the order of attributes
I was trying to construct an JSON String using JSON Object
I want the JSON String to be constructed this way
{
"Level": "3",
"Name": "testLogger",
"IPADDRESS": "testMachiene",
...