import json
class Subscriber(object):
firstname = None
lastname = None
class Post(object):
author = None
title = None
def decode_from_dict(cls,vals):
obj = cls()
for key, val in vals.items():
setattr(obj, key, val)
return obj
SERIALIZABLE_CLASSES = {'Subscriber': Subscriber,
'Post': Post}
def decode_object(d):
for field in d:
if field in SERIALIZABLE_CLASSES:
cls = SERIALIZABLE_CLASSES[field]
return decode_from_dict(cls, d[field])
return d
results = '''[{"Subscriber": {"firstname": "Neal", "lastname": "Walters"}},
{"Post": {"author": {"Subscriber": {"firstname": "Neal",
"lastname": "Walters"}}},
"title": "Decoding JSON Objects"}]'''
Repair corrupt Outlook PST files with two Microsoft utilities
Outlook PST file corruption is a fairly common occurrence. To help you troubleshoot PST failures, Microsoft provides two handy utilities: the Inbox Repair Tool and the Oversized OST And PST Crop Utility. in reference to: "Outlook PST file corruption is a fairly common occurrence. To help you troubleshoot PST failures, Microsoft provides two handy utilities: the Inbox Repair Tool and the Oversized OST And PST Crop Utility." - Repair corrupt Outlook PST files with two Microsoft utilities ( view on Google Sidewiki )
Comments