Add automatic conversion to json when accessing as string