@loopback/docs
Version:
Documentation for LoopBack 4
36 lines (23 loc) • 916 B
Markdown
lang: en
title: 'API docs: rest.getparseroptions'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.getparseroptions.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [getParserOptions](./rest.getparseroptions.md)
## getParserOptions() function
Extract parser options based on the parser type
<b>Signature:</b>
```typescript
export declare function getParserOptions(type: 'json', options: RequestBodyParserOptions): OptionsJson;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| type | 'json' | json\|urlencoded\|text |
| options | [RequestBodyParserOptions](./rest.requestbodyparseroptions.md) | |
<b>Returns:</b>
OptionsJson