retrofit - JSON syntax for date time -


my server return json string seems syntax not right. (i use retrofit json show jsonsyntaxexception @ expirestime field. ). check me:

{"messageid":1,"message":"new","expirestime":"fri mar 04 02:12:39 gmt+00:00 2016","senderid":2,"userid":1} 

this image when call api browser:

enter image description here

update:

please take @ old question: here

the entire string needs 1 line. have 2 lines why throwing error you. output should like:

{"messageid":1,"message":"new","expirestime":"fri mar 04 02:12:39 gmt+00:00 2016","senderid":2,"userid":1} 

similar questions:


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -