Easily json dump types and classes