Making /api/equipment a valid json file