core: recognize more complex content types for json [GH-4525]