javascript - Error trying to map a JSON object to a pojo using jackson mapper -
i've got pojo i've created populated json input. i'm running issue json i've got isn't matching pojo have can't figure out why. easy i'm not understanding basic structure of json.
here's pojo:
public class bears{ private string name; private list<toys> toys; // getters/setters omitted }
and here's json.
{"name":"1765665","toys":"[toy1,toy2,toy3]"}
i'm creating json doing following javascript call:
var bearjson = '${bearrows}'; var requestdata = { name: getname(), bearrows: bearjson };
any idea i'm missing?
Comments
Post a Comment