code model - to json convertion added