KenonOriginal post
Rank 1: Thread
I had to do this sort of code to get to the keys and the value of the body.
Is this completely normal?
body = context.req.body_raw
match = re.match(r"{\s*(\w+):\s*(\w+)\s*}", body)
Body or body row is not a json,
How did you plan to reach the keys?
The documentation doesn't help
thanks for the help
Summary
To access body_row keys, you should use `req.body` instead of `req.bodyRaw`. You can find more information about the `req` variable in the documentation here: [link]. There is also a usage example available here: [link].
If you are having trouble executing the function, you can try using the following code to access the keys and values of the body:
```
body = context.req.body_raw
match = re.match(r"{\s*(\w+):\s*(\w+)\s*}", body)
```
It is not normal for body or body row to not be in JSON format. If