json implemenation for namespaces