I'm using websockets, and in the onMessage()
method, I'm receiving a response in string form. I want to store this response in model class. How I convert this string response into array list?
[{"sender_id":"0008","created_at":"1313211849934","receiver_id":"0003","message":"second message","id":1,"chat_id":50,"type":"text"},{"sender_id":"0008","created_at":"1519211809934","receiver_id":"0003","message":"second message","id":2,"chat_id":50,"type":"text"}]