title: parsing JS (with functions) using GSON
body: <p>I have a bunch of files containing Javascript, which store configuration metadata, and I'd like to use GSON (2.2.4) to parse them into Java objects to be read by my application.
  This works for simple name/value pairs, but if my JS file has a function, of course GSON throws an exception:</p>
  
  <pre><code>[
      {
          text:'Cost',
          renderer:function(value)
          { 
             return 0; 
          }   
  
      },  ...
  </code></pre>
  
  <p><code>com.google.gson.stream.MalformedJsonException: Expected ':' at line 4 column 38</code></p>
  
  <p>I'm wondering if there's any way to have GSON parse this type of JS file, even if it has to completely ignore functions and just parse the simple name/value pairs?
  I guess I'd need to do some preprocessing on the input?</p>