25-31-1106. Discharge of imprisoned judgment debtor. The provisions of part 3 of chapter 14 in relation to the examination and discharge of a defendant imprisoned on execution in a civil action shall apply to justices' courts, and justices of the peace shall have the same powers in their courts as are by said sections granted to the judge.