Adding writing json