Json constructor media type formatter

This PR fixes #2 .