Substellar and low-mass dwarf identification with near-infrared imaging space observatories