- Serverless Programming Cookbook
- Heartin Kanikathottu
- 65字
- 2025-04-04 15:02:17
Passing JSON to and from Lambda handler
In this recipe, we passed simple Strings to and from our Lambda handler. We can instead pass a JSON and get back a JSON. To do this, we need to create two POJOs that represent our input and output, and specify them as generic types within our Handler declaration. We will see this approach in the next recipe.