replace make_json_ojroot with ojstream returning functions