Allow JSON Uploads to WordPress Media Library

Recently I was working on a project that required the addition of allowing JSON uploads in the media library. While I knew there was a filter for this, it did take some digging to understand why JSON uploads were treated as text/plain (and should be marked as such).

Here’s the example, and hope it helps.