Make sure API json type matching more flexible
so that it will work with jQuery getJSON (which sends a few different types by default)