We always expect JSON input when concatenating the request body, so DRY-ing it to one function.
Removing stray console log.
Onelining the "static" API for readability.
Inlining useless function.