beta 0.4

write json to txt file