(1) A petition for judicial separation may be presented to the district court either by the husband or the wife,-
(a) on any of the grounds specified 3[ in sub- section (1) 4[ and sub- section (1A)] of section 27] on which a petition for divorce might have been presented; or
(b) on the ground of failure to comply with a decree for restitution of conjugal rights; and the court, on being satisfied of the truth of the statements made in such petition, and that there is no legal ground why the application should not be granted, may decree judicial separation accordingly.