change to text dataType and using JSON.parse