Use JSON.parse instead of serialize.