The ldap2json script allows you to extract the whole LDAP content of a Windows domain into a JSON file.