Community Patterns

Community Library Entry

1

Regular Expression
Created·2021-05-01 05:31
Flavor·ECMAScript (JavaScript)

/
^application\/(.+\+)?json$
/
mg
Open regex in editor

Description

Useful to check the HTTP content-type as application/json since sometimes people created their own custom content-type on top of JSON.

Submitted by Yordis Prieto (Alchemist Ubi)