Open
Description
This is a Feature Proposal
Description
We have a use case where we call serverless framework from a language other than JS. for serverless invoke stepf...
the output is a javascript object string (properties are not quoted)
{
executionArn: '...',
stateMachineArn: '...',
...
}
This means that regular JSON parsers will break and you will need some JS interpreter in the middle to get a proper JSON out of this
i propose a new optional flag for all commands --jsonOutput
/--output json
that will tell the command that it needs to run its result through JSON.stringify
before printing it to stdout/stderr
Additional Data
- Serverless Framework Core Version you're using:3.35.2
- The Plugin Version you're using:3.15.0
- Operating System:node:18 (based on debian bookworm)
- Stack Trace: N/A
- Provider Error messages: N/A
Metadata
Metadata
Assignees
Labels
No labels