title: Faraday::ParsingError - 757: unexpected token
body: <p>I'm writing an API Wrapper and running into an issue that I'm not exactly sure how to solve.</p>
  
  <p>Here's the Faraday setup:</p>
  
  <pre><code>@connection = Faraday.new(url: @api_url, params: params,
                                  headers: default_headers,
                                  ssl: { verify: true } ) do |faraday|
                                    faraday.use FaradayMiddleware::Mashify
                                    faraday.use FaradayMiddleware::ParseJson, content_type: /\bjson$/
                                    faraday.use FaradayMiddleware::FollowRedirects
                                    faraday.adapter Faraday.default_adapter
                                  end
  </code></pre>
  
  <p>This works for 95% of the API calls I'm making - it parses JSON just like I need it to and Mashify's it.  Great.</p>
  
  <p>The issue is when the API returns a JSON value NOT wrapped in a JSON object.  The API call is this:</p>
  
  <p><a href="https://hacker-news.firebaseio.com/v0/maxitem.json" rel="nofollow noreferrer">https://hacker-news.firebaseio.com/v0/maxitem.json</a></p>
  
  <p>I can see this isn't a valid JSON object in jsonlint (screenshot below).</p>
  
  <p><img src="https://i.stack.imgur.com/832UW.png" alt="jsonlint"></p>
  
  <p>Do I need to reconfigure a new Faraday instance for this call alone?  That seems somewhat redundant but it's clearly blowing up on the <code>FaradayMiddleware::ParseJson</code> class.</p>
  
  <p>My RSpec test returns this:</p>
  
  <pre><code>Failure/Error: latest = client.max_item
       Faraday::ParsingError:
         757: unexpected token at '8438316'
  </code></pre>
  
  <p>Any help is appreciated.  </p>