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

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -