I want to convert JSON to java my json
var eateryRatingFactory = function() {
var self = this;
self.dineInMenu = [{
header: "Food",
items: [{
name: "Quality",
id: '1',
rating: '0'
},.....so on ]
},......so on ];
self.deliveryMenu = //some values same as beloew
};
my java class
public class EateryRatingAdapter {
public List<Ratings> dineInMenu;
public List<Ratings> deliveryMenu;
//setters and getters
public class Ratings{
public String header;
public List<Item> items;
//setters and getters
public class Item{
public String name;
public String id;
public String rating;
//setters and getters
}
}
}
while i'm getting the JSON at Request body , it is giving 400 bad request mean syntax mistake can u guys help this out