title: How to parse the POST argument to a REST service?
body: <p>It seems I have another JSON problem, this time when posting to the REST service.
  I am using <code>Flask-Restful</code>. </p>
  
  <pre><code>api.add_resource(Records, '/rest/records/&lt;string:email&gt;/&lt;string:password&gt;/&lt;string:last_sync_date&gt;')
  
  parser = reqparse.RequestParser()
  parser.add_argument('record_date', type=str)
  parser.add_argument('records', type=str)
  parser.add_argument('rating', type=str)
  parser.add_argument('notes', type=str)
  
  class Records(Resource):
      def post(self, email, password, last_sync_date):
          args = parser.parse_args()
          records = args['records'] # 'records' = None, but why? 
          return records, 201
  </code></pre>
  
  <p>Unit test:</p>
  
  <pre><code>resource_fields = {
              'record_date': fields.String,
              'rating': fields.Integer,
              'notes': fields.String,
              'last_updated': fields.DateTime,
          }
  records = {"records":[]}
  records["records"].append(marshal(record1, resource_fields))
      rv = self.app.post('/rest/records/{0}/{1}/{2}'.format(email, password, sync_date), data=json.dumps(records))
  </code></pre>
  
  <p>json.dumps(records) is:</p>
  
  <pre><code>str: {"records": [{"rating": 1, "notes": null, "last_updated": "Tue, 15 Oct 2013 15:52:44 -0000", "record_date": "2013-10-15 15:52:44.746815"}]}
  </code></pre>
  
  <p>Why is <code>args['records']</code> None, where I am clearly sending it over the wire?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Strange part is when I send a single object, its all dandy. So strange:</p>
  
  <pre><code>record = dict(record_date=record1.record_date, rating=record1.rating, notes=record1.notes, last_updated=record1.last_updated)
  
  rv = self.app.post('/rest/records/{0}/{1}/{2}'.format(email, password, sync_date), data=record)
  </code></pre>
  
  <p><strong>args</strong>:</p>
  
  <pre><code>{'records': None, 'notes': None, 'task': None, 'record_date': '2013-10-15 16:48:40.662744', 'rating': '1'}
  </code></pre>