add an equivalent API for the onestring json view