; const { email, password } = await req.json()
(lexical_declaration
  (variable_declarator
    name: (object_pattern
      (shorthand_property_identifier_pattern) @param.name)
    value: (await_expression
      (call_expression
        function: (member_expression
          object: (identifier) @_req
          property: (property_identifier) @_method)
        (#match? @_req "^(req|request)$")
        (#eq? @_method "json")))))

; const body = await req.json() (whole body capture)
(lexical_declaration
  (variable_declarator
    name: (identifier) @param.body
    value: (await_expression
      (call_expression
        function: (member_expression
          object: (identifier) @_req2
          property: (property_identifier) @_method2)
        (#match? @_req2 "^(req|request)$")
        (#eq? @_method2 "json")))))
