---
lang: en
title: 'API docs: rest.getparseroptions'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/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) &gt; [@loopback/rest](./rest.md) &gt; [getParserOptions](./rest.getparseroptions.md)

## getParserOptions() function

Extract parser options based on the parser type

**Signature:**

```typescript
export declare function getParserOptions(type: 'json', options: RequestBodyParserOptions): OptionsJson;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  type | 'json' | json\|urlencoded\|text |
|  options | [RequestBodyParserOptions](./rest.requestbodyparseroptions.md) |  |

**Returns:**

OptionsJson


