Should be able to open pretty much any file Defold uses for collections, game objects, and components, they are all in the same format.
parser.decodeFile(file)
file = io.open(path, "r")
local data = parser.decodeFile(file, filepath)
file:close()parser.encodeFile(file, data)
local file = io.open(path, "w")
parser.encodeFile(file, data)
file:close()