You can upload GeoJSON files to your Mapbox account to use in a custom map style. See the Mapbox Studio manual uploads page for details. Below is a sample GeoJSON file for reference.
There are several open source tools for converting other geospatial data formats to GeoJSON. A few favorites are: