Change the gson code when returning JSON data from remote

Completado Publicado Mar 2, 2016 Pagado a la entrega
Completado Pagado a la entrega

I have a mobile app, that uses it's own backend to update and pull data. I'm shifting the backend to WordPress and wordpress RestFul API.

The Android application is using gson library to convert a JSON string to an equivalent Java object. There is difference in the JSON response between my backend and WordPress .

URL to getting recipes from old backend

[login to view URL]

URL to getting recipes from new backend based on WordPress

[login to view URL]

The new backend sends back much more JSON data - so many data items needs to be suppressed to take the JSON respond and to map the respond to the JAVA object as is.

I'm looking for someone that know how to use gson library, and map the key JSON string respond to the JAVA object.

Here is the link to the old URL

https://torbjornzetterlund.com/cyclefood/app/services/recipes

Here is the java object for recipe

public class Recipe implements Serializable{
public Long id;
public String name;
public String instruction;
public Integer duration;
public String image;
public Long category;
public String category_name;
public Long date_create;
}


URL old backend
https://torbjornzetterlund.com/cyclefood/app/services/categories

New backend
https://thelonelycyclist.org/wp-json/wp/v2/recipe_categories/

for the category
public class Category implements Serializable {
public Long id;
public String name;
public String banner;
public String description;
public Integer recipes;
public List<Recipe> recipe_list = new ArrayList<>();
}

Android JSON Desarrollo de apps móviles RESTful

Nº del proyecto: #9824466

Sobre el proyecto

29 propuestas Proyecto remoto Activo Mar 4, 2016

Adjudicado a:

kabanenko

Hi! I can see same ulrs. Please provide two different urls. Also please provide POJO class that you need to feel from responce. It's not hard to me do this work using gson. I.m interested in good feedback and Más

€40 EUR en 10 días
(7 comentarios)
3.1

29 freelancers están ofertando un promedio de €157 por este trabajo

contact2phpsl

Greetings We have both skill set wordpress+android and insure you work as needed Thanks Shiv

€210 EUR en 3 días
(503 comentarios)
8.8
AwaisChaudhry

Hi there! I have read what you exactly need, however I would like to ask you a few questions. I would call myself a master of what I do, I do work smart and do not rest until I get the job done. Please feel free to pin Más

€144 EUR en 3 días
(28 comentarios)
7.0
mcaldce2008

A proposal has not yet been provided

€30 EUR en 0 días
(195 comentarios)
7.2
huzefagadi

A proposal has not yet been provided

€157 EUR en 2 días
(107 comentarios)
7.1
clancer1125

Hi there - I read your brief. I have over 3 years experience designing and developing mobile apps for iPhone and Android. Almost are social related and has back-end web service. I'm familiar with Json as well as gson l Más

€210 EUR en 1 día
(14 comentarios)
5.6
skronheim

Hello! I have 20 years of software development experience, including 5 years of experience with Android development. I have used GSON quite a bit to translate JSON strings into Java data structures. I am sure that Más

€100 EUR en 7 días
(16 comentarios)
5.3
BuddingDev

Hi Sir/Madam, I have read your project requirement. i have 5 years of experience in developing android applications. I have created a custom library to parse and utilise both JSON and XML. I will be able to complete t Más

€111 EUR en 1 día
(46 comentarios)
5.1
Dragos1307

worked a lot with gson. no problem for me

€144 EUR en 3 días
(25 comentarios)
5.1
deadlydroid

I like parsing json data I am familiar with gson library and a little php as well I can satrt immediately and deliver you with in a day

€55 EUR en 1 día
(26 comentarios)
4.7
paulhawke

I have extensive experience working with JSON (and the GSON library in particular). I'd be happy to help you map the data you need.

€155 EUR en 7 días
(3 comentarios)
2.5
tarunsitlani

Hello, I have worked with android applications which access data using wordpress rest-api. I have also worked with new end-point and customizing the actual response returned by the wordpress rest api. Please rep Más

€155 EUR en 1 día
(4 comentarios)
2.1
ahmednawaz0011

I have experienced gson and have full command over it. allow me to help you out?

€166 EUR en 15 días
(2 comentarios)
1.2
farisjameel

Hey, Hope so you are fine, as I read you project description its really essay for me to do this task because I have lots of experience of using gson library for json parsing and previously I was successfully using gso Más

€55 EUR en 1 día
(3 comentarios)
1.3
AlphaCassiopeiae

Hello! My name is Julia, I'm professional android developer from Ukraine. I have rich experience with REST, JSON and gson library. So I think I'll be able to complete work in 1 day. I was expected to get different j Más

€55 EUR en 1 día
(0 comentarios)
0.0
samten56

I have the experience of working with restful api and getting the response from the server to the java class in android. I had build two project using restful api to connect to the backend server. I can also provide Más

€155 EUR en 3 días
(0 comentarios)
0.0
carlostimoshenko

So, if you only need to someone to map the java classes, if am i correct!? i can do this for you, it is very simple to be honest with you.

€155 EUR en 3 días
(0 comentarios)
0.0