cfjson/xrdataset.py
def json_dumps(self, indent=2, separators=None, mapping={}, attributes={}):
        """
        Dumps a JSON representation of the Dataset following the same conventions as ncdump.
        Assumes the Dataset is CF complient.
        """
        dico=self.to_dict(mapping)
        try:
            dico['attributes'].update(attributes)
        except:
            print('Failed to set global attributes %s'%(attributes))
        return json.dumps(dico, indent=indent, separators=separators).replace('NaN','null')

        Dumps a JSON representation of the Dataset following the same conventions as ncdump.
        Assumes the Dataset is CF complient.
        
Dumps a JSON representation of the Dataset following the same conventions as ncdump.
Assumes the Dataset is CF complient.
Dumps a JSON representation of the Dataset following the same conventions as ncdump . Assumes the Dataset is CF complient .
def json_dumps(self, indent=2, separators=None, mapping={}, attributes={}):
        dico=self.to_dict(mapping)
        try:
            dico['attributes'].update(attributes)
        except:
            print('Failed to set global attributes %s'%(attributes))
        return json.dumps(dico, indent=indent, separators=separators).replace('NaN','null')
def json_dumps ( self , indent = 2 , separators = None , mapping = { } , attributes = { } ) : dico = self . to_dict ( mapping ) try : dico [ 'attributes' ] . update ( attributes ) except : print ( 'Failed to set global attributes %s' % ( attributes ) ) return json . dumps ( dico , indent = indent , separators = separators ) . replace ( 'NaN' , 'null' )
Dumps a JSON representation of the Dataset following the same conventions as ncdump.
Dumps a JSON representation of the Dataset following the same conventions as ncdump .
"""
        Dumps a JSON representation of the Dataset following the same conventions as ncdump.
        Assumes the Dataset is CF complient.
        """
self
indent
separators
mapping
attributes