jsonview icon indicating copy to clipboard operation
jsonview copied to clipboard

Add support for Content-Type: application/vnd.spring-boot.actuator.v3+json

Open Rickroll-C137 opened this issue 3 years ago • 1 comments

When you visiting the springboot actuator web monitor page, it will return a json string of the opened ports. The problem is that the response Content-Type header is application/vnd.spring-boot.actuator.v3+json, thus can`t be recognized as json string by jsonview.

Rickroll-C137 avatar Mar 26 '22 14:03 Rickroll-C137

As far as I can see the regex (#179) needs to be further adjusted to match - (hyphen) and digits:

const jsonContentType = /^application\/([a-z.]+\+)?json($|;)/;

stanio avatar Mar 28 '22 05:03 stanio