title: get all defined variables in current scope
body: <p>I'm parsing a website which contains stuff like</p>
  
  <pre><code>hmapId[7]='42500000000626135';
  hmapStartInterv[7]='750';
  hmapEndInterv[7]='846';
  hmapUrlInterv[7]='some url';
  hmapNameInterv[7]="some name"
  hmapRoleInterv[7]='some role';
  </code></pre>
  
  <p>My plan is to write that into a <code>.js</code> file and execute it with node js. After that I want to have some lines of code giving me all variables defined before as JSON to use the data in some other program. What's the best way to do this?</p>
  
  <p>Thanks</p>