Fix JSON media type

As defined in RFC 4627:
"The MIME media type for JSON text is application/json."
Merge pull request #3005 from fernandoacorreia/application-json

Fix JSON media type