Currently, smbclient provides an interface similar to that of the ftp program, allowing users to interact with SMB/CIFS resources on servers. However, it lacks native support for output in JSON format.Currently, smbclient provides an interface similar to that of the ftp program, allowing users to interact with SMB/CIFS resources on servers. However, it lacks native support for output in JSON format, scripts rely on JSON for structured data exchange. Having JSON output from smbclient would greatly enhance its usability in various scenarios. I’ve included sample output in JSON format based on the current smbclient output. These examples demonstrate how the proposed enhancement could benefit users: List Shares on a Server: { "server": "myserver", "shares": [ { "name": "share1", "type": "disk", "comment": "Shared folder for project files" }, { "name": "share2", "type": "printer", "comment": "Printer queue" } ] } Retrieve File Information: { "file": "example.txt", "size": 1024, "last_modified": "2024-04-10T14:30:00Z", "permissions": "rw-r--r--" } Please consider implementing this feature to enhance the versatility of smbclient. If you need further clarification or have any questions, feel free to reach out. Thank you for your attention to this matter. I appreciate your efforts in maintaining and improving samba.