How to pass float numbers to Lambda event object


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?

asked 8 months ago95 views
1 Answer
Accepted Answer

This is a sample event with a float

Are you able to share what your event looks like?

answered 8 months ago
profile picture
reviewed 8 months ago
  • Thank you, that helps. I did not have my leading zero. I had .55 and it requires it to be 0.55.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions