Parse JSON before it's returned.