<script type="text/javascript"> var str = 'Text:"How secure is my information?"'; var obj = eval('({'+str+'})') console.log(obj.Text); </script>