Bags were not working because of missing json extension