changed format of .json output

Now uses namespace keyword strings as keys
'unresolved' values added to main dictionary for each namespace