JsonBodyParser Class
Provides function to construct the structure needed to display the navigation in the Admin section of the application.
Constructor
JsonBodyParser
()
Item Index
Methods
Methods
getRawData
(
-
cb
Retrieves the raw payload data as a string
Parameters:
-
cb
Function
parse
(
-
req
-
cb
Attempts to parse the request body as JSON content
Parameters:
-
req
RequestThe incoming request whose payload should be parsed
-
cb
FunctionA callback that taks two parameters: An Error, if occurred and the parsed body content as an object