Added enum IterationAcess. Some test code for json.