how to append json file