Guest User

Untitled

a guest
Dec 15th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. public class Entity implements Serializable {
  2.  
  3. @SerializedName("body")
  4. @Expose
  5. private BodyObject body;
  6.  
  7. {
  8. "body": []
  9. }
  10.  
  11. java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 443 path $.body
  12.  
  13. {
  14. "body": {
  15. "und": [
  16. {
  17. "value": "Test ....",
  18. "summary": "",
  19. "format": "filtered_html",
  20. "safe_value": "<p>Test ....</p>n",
  21. "safe_summary": ""
  22. }
  23. ]
  24. }
  25. }
  26.  
  27. Gson gson = new GsonBuilder()
  28. .setLenient()
  29. .create();
Add Comment
Please, Sign In to add comment