using JSON to retrieve namespaces via API