Parse JSON before returning it.