@loopback/docs
Version:
Documentation for LoopBack 4
33 lines (21 loc) • 777 B
Markdown
lang: en
title: 'API docs: rest.jsonbodyparser.supports'
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.jsonbodyparser.supports.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [JsonBodyParser](./rest.jsonbodyparser.md) > [supports](./rest.jsonbodyparser.supports.md)
## JsonBodyParser.supports() method
<b>Signature:</b>
```typescript
supports(mediaType: string): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| mediaType | <code>string</code> | |
<b>Returns:</b>
`boolean`