added json dump function with joe
single object can now be passed with list