Tagged Questions
0
votes
0answers
12 views
Json; jackson cycle handling, put objectID in json
I have a Parent and a Child class. I use jackson 1.9.9 (if it's nessesery, I can use another version of jackson, but it have to be jackson) I managed to solve the cycle when I need to convert Parent ...
0
votes
1answer
12 views
Pass javascript object to java's JsonObject
I am trying to pass some simple javascript object from my Parse.com cloud function (back-end)to my android application.
Here is the code of the javascript class:
function Rate()
{
this.avgRate = ...
-1
votes
3answers
37 views
how to parse JSONArray in android
I want to read this JSON lines but because it start with JSONArray im a little confused
"abridged_cast": [
{
"name": "Jeff Bridges",
"id": "162655890",
...
0
votes
0answers
14 views
Getting objectmapper for config serialization deserialization
I have a rest service, and I would like to use views, as I read it on this page:
http://techtraits.com/Programming/2011/08/12/implementing-jackson-views/
My REST service have this function:
@GET
...
0
votes
0answers
24 views
android JSON parsing How to make two http Connection one after the other
Im using Rotten Tomatoes api and for some reason if i want to get more information about a movie like the movie director or the studio I need another http page. this is the url that im getting ...
0
votes
1answer
27 views
How to extract a specific link in a json file
"papers": [
{
"files": [
{
"url": "http://farnsworth.papro.org.uk/file/977",
"type": "Initial XML version of the paper",
"name": "c6938201-dac0-4ef9-91cd-ca6e8c30f4b8.xml"
...
0
votes
1answer
21 views
Handle cycle reference durint json serialization/deserialization
I develop a REST interface, with jackson 1.9.9.
I have these 2 classes, and Parent class contains a list of Child classes, and Child class have a reference to Parent class. (see below)
I want to be ...
1
vote
0answers
15 views
Jackson 2.2.2 ObjectMapper date format doesn't work for Joda DateTime
In my project I have following ObjectMapper class:
public class ObjectMapperImpl extends ObjectMapper {
public ObjectMapperImpl() {
super();
...
0
votes
3answers
44 views
How to convert json string to java object
{
"application_num" : 185,
"age" : 35,
"mobile_num" : "9943847180",
"active" : null,
"photo" : null,
"bytes" : null,
"creator" : null,
"modifier" : null,
"modifiedby" : null,
...
1
vote
0answers
25 views
Play Framework 2.1 Cannot handle JSON POST request from controller
I am trying to achieve something simple, using play framework 2.1 (java):
Post JSON data via jquery, and retrieve it from a controller.
Could you kindly tell me where I am wrong?
It starts from a ...
-2
votes
3answers
38 views
Specific usage of Android ListView
I'm filling a custom ListView (by custom I mean with a specific layout) with a json request, an i'd like to implement an OnItemClickListener. So i did that :
ListView lv = (ListView) ...
0
votes
2answers
32 views
Java - how to parse both json arrays and objects
i am using the org.json package in Java (Android) and I am just stumbled with a simple problem.
The webserver returns an array if everything is okay, but an json object { error : true, ...} if ...
0
votes
3answers
43 views
Generate Java objects from JSON
I need to generate a Java class from a JSON response recieved from a web service. I've used JAXB to handle xml, but I don't know how to handle JSON. Does anyone know if a tool exists for this job? ...
-4
votes
1answer
54 views
Extracting words using regular expression [closed]
In the sentence
-[Multiple space characters] 1GB – 10TB is $0.19/GB
I am trying to extract 1GB, 10TB, %0.19/GB.
I tried using the regular expression
("-.*(\\d.*)-(\\d[^ ])\\sis\\s(.+)
in java ...
1
vote
1answer
13 views
Best json rpc 2.0 library for Android
I have json rpc 2.0 server written in php. Currently I'm looking for a library that allows auto generation json rpc requests instead of using manual serialization.
I found a bunch of different ...