input: Write a function to load a JSON fixture file, extract properties, create Property objects, and save them to the database. The function should return the number of properties saved. If the fixture file is empty, it should return 0.
  assert main("/path/to/base") == 2
  assert main("/path/to/empty/fixture") == 0
output: def main(fixture_path):
      import json
      from myapp.models import Property
      from django.core.exceptions import ObjectDoesNotExist
  
      try:
          with open(fixture_path, 'r') as file:
              data = json.load(file)
      except (FileNotFoundError, json.JSONDecodeError):
          return 0
  
      if not data:
          return 0
  
      properties_saved = 0
      for item in data:
          try:
              Property.objects.get(id=item['id'])
          except ObjectDoesNotExist:
              Property.objects.create(**item)
              properties_saved += 1
  
      return properties_saved