Model indexes respond to JSON for api