adding visible property to json api