Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,11 @@ def process_json(input_json):
|
|
8 |
|
9 |
# Your logic here to process the data
|
10 |
# For example, let's say we want to extract a "name" field from the JSON
|
11 |
-
|
|
|
12 |
|
13 |
# Create a response JSON object
|
14 |
-
response_json = {"message": f"Hello, {name}!"}
|
15 |
|
16 |
# Convert the response JSON object to a string
|
17 |
response_str = json.dumps(response_json)
|
|
|
8 |
|
9 |
# Your logic here to process the data
|
10 |
# For example, let's say we want to extract a "name" field from the JSON
|
11 |
+
user_id = data.get("user_id", "Unknown")
|
12 |
+
user_token = data.get("user_token", "Unknown")
|
13 |
|
14 |
# Create a response JSON object
|
15 |
+
response_json = {"message": f"Hello, {name}!{user_token}"}
|
16 |
|
17 |
# Convert the response JSON object to a string
|
18 |
response_str = json.dumps(response_json)
|