JPMorgan second-quarter earnings beat analysts' estimates on better-than-expected revenue from fixed income trading and investment banking.