single table inheritance and json api