Add to json support

Added to_json method to DataObject to allow recursive descent thru those objects.