extracted json to external file