fix to json method without class property