async function writeJson(path, json){
    return ipfs.files.write(path,
        Buffer.from(JSON.stringify(json)),
        {create: true, parents: true, flush: false});
}
/**
 * Write a single JS object to a JSON file in a local IPFS path (MFS)
 * @param path Path to IPFS folder
 * @param json JS object to convert to json
 * @returns {Promise<Promise|boolean|*|Boolean|void>}
 */
Write a single JS object to a JSON file in a local IPFS path (MFS)
@param path Path to IPFS folder
@param json JS object to convert to json
@returns {Promise}
Write a single JS object to a JSON file in a local IPFS path ( MFS ) @param path Path to IPFS folder @param json JS object to convert to json @returns { Promise }
async function writeJson(path, json){
    return ipfs.files.write(path,
        Buffer.from(JSON.stringify(json)),
        {create: true, parents: true, flush: false});
}
async function writeJson ( path , json ) { return ipfs . files . write ( path , Buffer . from ( JSON . stringify ( json ) ) , { create : true , parents : true , flush : false } ) ; }
Write a single JS object to a JSON file in a local IPFS path (MFS)
 @param path Path to IPFS folder
 @param json JS object to convert to json
 @returns {Promise<Promise|boolean|*|Boolean|void>}
Write a single JS object to a JSON file in a local IPFS path ( MFS ) @param path Path to IPFS folder @param json JS object to convert to json @returns { Promise<Promise|boolean| * |Boolean|void > }