Search
Preparing search index...
The search index is not available
@quenk/jhr
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
"agent/parser/json"
JSONParser
Class JSONParser<D>
JSONParser
Type parameters
D
:
json.Object
Hierarchy
JSONParser
Implements
Parser
<
string
,
D
>
Index
Constructors
constructor
Properties
accepts
prefix
response
Type
Methods
apply
Constructors
constructor
new JSONParser
(
prefix
?:
RegExp
)
:
JSONParser
Parameters
Default value
prefix:
RegExp
= /^\)\]\}',?\n/
Returns
JSONParser
Properties
accepts
accepts
:
string
= "application/json"
prefix
prefix
:
RegExp
response
Type
response
Type
:
string
= ""
Methods
apply
apply
(
body
:
string
)
:
Except
<
D
>
Parameters
body:
string
Returns
Except
<
D
>
Globals
"agent/parser/json"
JSONParser
constructor
accepts
prefix
response
Type
apply
Generated using
TypeDoc
JSONParser