update yaml and json