Q:

How to access JSON object within JSON array python?

I am using a wrapper for Reddit's API to return information about comments. The way the information is returned is very confusing to me and I am having trouble getting the info I need.
So the API returns information in this format:
comment(all_awardings=[], associated_award=None, author='raidoctober', author_flair_background_color=None, author_flair_css_class=None, author_flair_richtext=[], author_flair_template_id=None, author_flair_text=None, author_flair_text_color=None, author_flair_type='text', author_fullname='t2_1ekqex92', author_patreon_flair=False, author_premium=False, awarders=[], body="Haha, yeah I thought about it. But it's probably not worth it cause of all the taxes, copart fees, cost of turning a Salvage title into a rebuilt and the insurance deductible.", collapsed_because_crowd_control=None, created_utc=1591296781, gildings={}, id='fsw0scp', is_submitter=True, link_id='t3_gwn3rw', locked=False, no_follow=True, parent_id='t1_fsvyhq1', permalink='/r/motorcycles/comments/gwn3rw/did_copart_steal_my_motorcycle/fsw0scp/', retrieved_on=1591301318, score=1, send_replies=True, stickied=False, subreddit='motorcycles', subreddit_id='t5_2qi6d', top_awarded_type=None, total_awards_received=0, treatment_tags=[], created=1591321981.0, d_={'all_awardings': [], 'associated_award': None, 'author': 'raidoctober', 'author_flair_background_color': None, 'author_flair_css_class': None, 'author_flair_richtext': [], 'author_flair_template_id': None, 'author_flair_text': None, 'author_flair_text_color': None, 'author_flair_type': 'text', 'author_fullname': 't2_1ekqex92', 'author_patreon_flair': False, 'author_premium': False, 'awarders': [], 'body': "Haha, yeah I thought about it. But it's probably not worth it cause of all the taxes, copart fees, cost of turning a Salvage title into a rebuilt and the insurance deductible.", 'collapsed_because_crowd_control': None, 'created_utc': 1591296781, 'gildings': {}, 'id': 'fsw0scp', 'is_submitter': True, 'link_id': 't3_gwn3rw', 'locked': False, 'no_follow': True, 'parent_id': 't1_fsvyhq1', 'permalink': '/r/motorcycles/comments/gwn3rw/did_copart_steal_my_motorcycle/fsw0scp/', 'retrieved_on': 1591301318, 'score': 1, 'send_replies': True, 'stickied': False, 'subreddit': 'motorcycles', 'subreddit_id': 't5_2qi6d', 'top_awarded_type': None, 'total_awards_received': 0, 'treatment_tags': [], 'created': 1591321981.0})

I tried to convert to JSON using
x = json.dumps(hit, sort_keys=True, indent=4)

# hit is the information returned (it is the comment before conversion)

which converts the comment into this JSON format:
[
    [],
    null,
    "raidoctober",
    null,
    null,
    [],
    null,
    null,
    null,
    "text",
    "t2_1ekqex92",
    false,
    false,
    [],
    "Haha, yeah I thought about it. But it's probably not worth it cause of all the taxes, copart fees, cost of turning a Salvage title into a rebuilt and the insurance deductible.",
    null,
    1591296781,
    {},
    "fsw0scp",
    true,
    "t3_gwn3rw",
    false,
    true,
    "t1_fsvyhq1",
    "/r/motorcycles/comments/gwn3rw/did_copart_steal_my_motorcycle/fsw0scp/",
    1591301318,
    1,
    true,
    false,
    "motorcycles",
    "t5_2qi6d",
    null,
    0,
    [],
    1591321981.0,
    {
        "all_awardings": [],
        "associated_award": null,
        "author": "raidoctober",
        "author_flair_background_color": null,
        "author_flair_css_class": null,
        "author_flair_richtext": [],
        "author_flair_template_id": null,
        "author_flair_text": null,
        "author_flair_text_color": null,
        "author_flair_type": "text",
        "author_fullname": "t2_1ekqex92",
        "author_patreon_flair": false,
        "author_premium": false,
        "awarders": [],
        "body": "Haha, yeah I thought about it. But it's probably not worth it cause of all the taxes, copart fees, cost of turning a Salvage title into a rebuilt and the insurance deductible.",
        "collapsed_because_crowd_control": null,
        "created": 1591321981.0,
        "created_utc": 1591296781,
        "gildings": {},
        "id": "fsw0scp",
        "is_submitter": true,
        "link_id": "t3_gwn3rw",
        "locked": false,
        "no_follow": true,
        "parent_id": "t1_fsvyhq1",
        "permalink": "/r/motorcycles/comments/gwn3rw/did_copart_steal_my_motorcycle/fsw0scp/",
        "retrieved_on": 1591301318,
        "score": 1,
        "send_replies": true,
        "stickied": false,
        "subreddit": "motorcycles",
        "subreddit_id": "t5_2qi6d",
        "top_awarded_type": null,
        "total_awards_received": 0,
        "treatment_tags": []
    }
]

I've tried indexing to access it but sometimes the size of the array is different so the results were inaccurate.
I need the "author", "body", and "permalink" tags.
I'm sorry if this is too vague! If you need more information/clarification please let me know.

A:

Does this help?
hit = [
    [],
    None,
    "raidoctober",
    None,
    None,
    [],
    None,
    None,
    None,
    "text",
    "t2_1ekqex92",
    False,
    False,
    [],
    "Haha, yeah I thought about it. But it's probably not worth it cause of all the taxes, copart fees, cost of turning a Salvage title into a rebuilt and the insurance deductible.",
    None,
    1591296781,
    {},
    "fsw0scp",
    True,
    "t3_gwn3rw",
    False,
    True,
    "t1_fsvyhq1",
    "/r/motorcycles/comments/gwn3rw/did_copart_steal_my_motorcycle/fsw0scp/",
    1591301318,
    1,
    True,
    False,
    "motorcycles",
    "t5_2qi6d",
    None,
    0,
    [],
    1591321981.0,
    {
        "all_awardings": [],
        "associated_award": None,
        "author": "raidoctober",
        "author_flair_background_color": None,
        "author_flair_css_class": None,
        "author_flair_richtext": [],
        "author_flair_template_id": None,
        "author_flair_text": None,
        "author_flair_text_color": None,
        "author_flair_type": "text",
        "author_fullname": "t2_1ekqex92",
        "author_patreon_flair": False,
        "author_premium": False,
        "awarders": [],
        "body": "Haha, yeah I thought about it. But it's probably not worth it cause of all the taxes, copart fees, cost of turning a Salvage title into a rebuilt and the insurance deductible.",
        "collapsed_because_crowd_control": None,
        "created": 1591321981.0,
        "created_utc": 1591296781,
        "gildings": {},
        "id": "fsw0scp",
        "is_submitter": True,
        "link_id": "t3_gwn3rw",
        "locked": False,
        "no_follow": True,
        "parent_id": "t1_fsvyhq1",
        "permalink": "/r/motorcycles/comments/gwn3rw/did_copart_steal_my_motorcycle/fsw0scp/",
        "retrieved_on": 1591301318,
        "score": 1,
        "send_replies": True,
        "stickied": False,
        "subreddit": "motorcycles",
        "subreddit_id": "t5_2qi6d",
        "top_awarded_type": None,
        "total_awards_received": 0,
        "treatment_tags": []
    }
]

for item in hit:
    if type(item) is dict:
        if "author" in item and "body" in item and "permalink" in item:
            reqd_dict = {"author": item['author'], "body": ['body'], "permalink": ['permalink']}
            print("Found it!!")

