[FIX] #8 - publish does not allow for JSON format

Fix for #8 

Added -f format specified for publish call.