Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "middleware/bodyParser/json"

Index

Variables

Const FIRST_CHAR_REGEXP

FIRST_CHAR_REGEXP: RegExp = /^[\x20\x09\x0a\x0d]*(.)/

RegExp to match the first non-space in a string.

Allowed whitespace is defined in RFC 7159:

ws = *( %x20 / ; Space %x09 / ; Horizontal tab %x0A / ; Line feed or New line %x0D ) ; Carriage return

Functions

Private createStrictSyntaxError

  • createStrictSyntaxError(str: string, char: string): any

Private firstChar

  • firstChar(str: string): any

json

  • json(options?: any): jsonParser

normalizeJsonSyntaxError

  • normalizeJsonSyntaxError(error: any, obj: any): any

Generated using TypeDoc