Updated JSON responses to include class name