title: How to get employee detail by userId in Python/Falcon
body: <p>I am new to Python/<strong><a href="https://falconframework.org/" rel="nofollow noreferrer">Falcon</a></strong>. How to get employee details by <code>userId</code> in Python?</p>
  <h1>falcontry.py</h1>
  <p><strong>Falcon example:</strong></p>
  <pre><code>import falcon
  import json 
  
  class ThingsResource: 
  
      def on_get(self, req, resp): 
          resp.status = falcon.HTTP_200 
  
          fp = open(&quot;jsonparser.json&quot;,&quot;r&quot;) 
          json_str = fp.read() 
  
          print json_str json_content = json.loads(json_str)
          json_content = json.dumps(json_content) 
  
          print json_content resp.body = (json_content)
  
  api = falcon.API() 
  things = ThingsResource() 
  api.add_route('/Employees/userId/{id}', things)
  </code></pre>
  <p>what i am doing wrong here?</p>
  <p>jsonparser.json
  <strong>Employees:</strong></p>
  <pre><code>{ &quot;Employees&quot; : [{
          &quot;userId&quot;:&quot;RUPAK&quot;,
          &quot;jobTitleName&quot;:&quot;Developer&quot;,
          &quot;firstName&quot;:&quot;ABC&quot;,
          &quot;lastName&quot;:&quot;Irani&quot;,
          &quot;preferredFullName&quot;:&quot;Romin Irani&quot;,
          &quot;employeeCode&quot;:&quot;E1&quot;,
          &quot;region&quot;:&quot;CA&quot;,
          &quot;phoneNumber&quot;:&quot;408-1234567&quot;,
          &quot;emailAddress&quot;:&quot;romin.k.irani@gmail.com&quot;
      }]
  
  }
  </code></pre>