Convenience method to dump json