How to get data from key-value pairs in Vue.js
<p>I use rails on the backend and vue.js on the frontend. I'm trying to print the error just in case. Under <code>.catch</code> I get an error like below but cannot get the message from it. Please help me solve this problem. </p>
<pre class="brush:php;toolbar:false;">.catch(function (error) {
debugger
});</pre>
<p>In the console, if I try <code>error.response.data.error</code> this returns <code>'{:message=>"Amount is less than the minimum value"} '</code> I can't figure out how I can get only the message. </p>
<p>Wrong answer</p>