Add JSON media types. Reported and contributed by mafuba.