How to pass float numbers to Lambda event object

0

I have a Lambda function running Python 3.8 and am trying to run a test event using the JSON event object. When I try to put a float in the JSON, it tells me that my JSON is not formatted properly. How do you pass floats or are only strings allowed?

질문됨 2년 전495회 조회
1개 답변
2
수락된 답변

This is a sample event with a float https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-concepts.html#gettingstarted-concepts-event

Are you able to share what your event looks like?

Kishan
답변함 2년 전
profile pictureAWS
전문가
검토됨 2년 전
  • Thank you, that helps. I did not have my leading zero. I had .55 and it requires it to be 0.55.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠