[Solved] AttributeError: OperationJson instance has no attribute ‘data‘

Wrong:
#coding:utf-8
import json
class OperetionJson:

	def __init__(self,file_path=None):
		if file_path == None:
			self.file_path = '../dataconfig/user.json'
		else:
			self.file_path = file_path
		    self.data = self.read_data();
		    

Right:
```python
#coding:utf-8
import json
class OperetionJson:

	def __init__(self,file_path=None):
		if file_path == None:
			self.file_path = '../dataconfig/user.json'
		else:
			self.file_path = file_path
		self.data = self.read_data()
	

Read More: