0
votes
2answers
42 views
Views from HashMap not being named correctly
I am attempting to create a dynamic U.I. from a JSON response. I have the following code.
class LoadAllQuestions extends AsyncTask<String, String, String> {
private ProgressDialog ...
1
vote
2answers
26 views
saving json data in hdfs in hadoop
I have the following Reducer class
public static class TokenCounterReducer extends Reducer<Text, Text, Text, Text> {
public void reduce(Text key, Iterable<Text> values, Context ...
0
votes
1answer
21 views
Jackson parser json setter to take value as string array
I have below json:
"[{\"movieName\":\"A\",\"Leadactor\":\"\",\"leadActress\":\"\",\"movieTitle\":\"\",\"hero\":\"\",\"heroine\":\"\",\"source\":\"IMDB\"}," +
...
1
vote
2answers
46 views
Parsing a json object which has many fields
I want to parse json from a server and place it into a class. I use json4s for this. The issue is that a json object contains too many fields, it's about 40-50 of them, some of them have the long ...
1
vote
2answers
41 views
Sorting by some of the fields in Json Object
I have a Josn file containing array of objects like :
{
"tId": "Something",
"StartTime": "05/29/2013 5:28:33 PM",
"CompleteTime": "05/29/2013 5:28:33 PM",
"Status": "success",
...
-3
votes
0answers
38 views
JSON object parsing with GSON [closed]
I need to do an application on Android which connects to a server. I have to convert a json received from the server and print it as a string on the application screen
Here is the JSON :
[
{
...
0
votes
4answers
38 views
Android JSON Exception - JSONArray cannot be converted to JSONObject
I'm trying to read a json url from http://freshersadda.com/jsonFeed/faJsonFeed.php
My Code:
// Creating JSON Parser instance
JSONParser jParser = new JSONParser();
// getting JSON string from URL
...
0
votes
2answers
54 views
JSON response is returning as text
I have composed JSON response as below in my java servlet, where JObject is the JSON object created
response.setContentType("application/json; charset=UTF-8");
PrintWriter printout = ...
1
vote
0answers
28 views
Complex object (de)serialization into JSON using GSON
I have a problem with serializing and deserializing my object structure with GSON. In order to describe the problem i'll have to describe my class structure a bit:
I have a java abstract class, let's ...
0
votes
2answers
9 views
XMLHttpRequest Exception 101 when i try to call POST rest with jquery
i'm using jquery ,jersey and json.
when i try to call a post service i receive this error
Origin null is not allowed by Access-Control-Allow-Origin.
undefined * Error: NETWORK_ERR: XMLHttpRequest ...
1
vote
1answer
26 views
Spring 3.2.0 (Web MVC) REST API and JSON 2 Post requests, how to get it right once for all?
Before going into details, I know there has been lots of conversations and related questions on Stackoverflow. All of them kind of help me in different ways so I thought I put my findings all together ...
0
votes
1answer
18 views
android parse json object use jsontokener
I try to parse json use jsontokener
This is my jsontokener code :
try {
JSONObject jObj = (JSONObject) new JSONTokener(strJson).nextValue();
String query = jObj.getString("query");
...
0
votes
1answer
26 views
How to validate request parameter if it is not a bean in spring MVC?
Below is a POST end point in my spring MVC REST service. I want to use spring validation frame work to make sure that list I receive is not empty. How do I do it? Do I have to provide wrapper bean to ...
0
votes
2answers
37 views
create Views from HashMap inside ArrayList
This is a logic problem I can't seem to wrap my head around, but I think I'm close. I'm getting values from a JSON response and storing them inside a HashMap then adding the HashMap to an ArrayList.
...
0
votes
1answer
27 views
Result Coming back from the Server is cutting off and throw not Valid JSON Exception
I am calling a wcf web service in android. All appear to work fine until I call a method that is returning quite a bit of data. It appears the result is being cut off and throwing not a valid json ...