Every example requires a package.json in the src/ directory, otherwise, the serverless framework throws an error, even when this package.json is not needed at all.
For non-node projects, package.json should not be required. See the non-node examples' package.json, they are only kind of dummies.