Skip to content

Commit 2a82767

Browse files
committed
added event.json to readme.
1 parent b89ac76 commit 2a82767

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,16 @@ This is the handler function; this is the function AWS Lambda will invoke in res
7474

7575
So if for example your function is responding to an http request, ``event`` will be the ``POST`` JSON data and if your function returns something, the contents will be in your http response payload.
7676

77-
Next let's open the ``event.json`` file. Here you'll find the values of ``e`` and ``pi`` that are being referenced in the sample code.
77+
Next let's open the ``event.json`` file:
78+
79+
.. code:: json
80+
81+
{
82+
"pi": 3.14,
83+
"e": 2.718
84+
}
85+
86+
Here you'll find the values of ``e`` and ``pi`` that are being referenced in the sample code.
7887

7988
If you now try and run:
8089

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"pi": 3.14,
3-
"e": 2.718,
4-
"foo": "bar"
3+
"e": 2.718
54
}

0 commit comments

Comments
 (0)