nicer method of constructing simple json dicts