Hey Pier, you are right. My answer was wrong in your context, sorry about that. But the body being string is by design as noted by Uri.
This is by design.
I think you are only able to change it using API Gateway. Lambda functions with PROXY integration accelerates your integration process as you don't need to create the request and response templates. And, as the Lambda can receive binary payload in BASE64, the
body should have a type for this case also, as, the payload is not JSON.
You can still receive the payload as JSON if you setup the request and response templates by yourself.
How do I query X-ray using a http URL, where that URL is not the first part of the request?asked 3 months ago
Internal Server Error/502 Bad Gateway testing a Lambda Function via the Function URLasked a month ago
POST request to presigned AWS Lambda Function URL with unsigned payloadasked a month ago
Why does Lambda URL convert the request body from JSON to string?Accepted Answerasked a month ago
Converting existing, manually created Lambda with triggers and Function URL to SAMasked a month ago
new Lambda Function URL with TerraformAccepted Answerasked 4 months ago
Unable to use X-Http-Method-Override header with Lambda Function URLasked a month ago
How to retrieve path parameters from websocket url in lambda functionsAccepted Answerasked 8 months ago
Error "The security token included in the request is invalid" invoking lambda function urlasked 2 months ago
Connecting Cloudfront to Lambda Function Url Always Result in forbiddenAccepted Answerasked 3 days ago