Read and write cortex.json