Read specific fields from Postgres jsonb

I have data like

{"name": "a", "scope": "1", "items": [{"code": "x", "description": "xd"}, {"code": "x2", "description": "xd2"}]} {"name": "b", "scope": "2", "items": [{"code": "x", "description": "xd"}]} {"name": "c", "scope": "3", "items": [{"code": "x", "description": "xd"}]} {"name": "d", "scope": "4", "items": [{"code": "x", "description": "xd"}]} 

Now I want the result like:

{"name": "a","items": [{"code": "x"}, {"code": "x2"}]} {"name": "b","items": [{"code": "x"}]} {"name": "c","items": [{"code": "x"}]} {"name": "d","items": [{"code": "x"}]}