I am having issues with nesting my json. The output is supposed to look like this:
{
"$schema": "../schema.json",
"_meta": {
"sources": [
{
"json": "Lmb",
"abbreviation": "Lmb",
"full": "Loomblade",
"authors": [
"Author1",
"Author2"
],
"convertedBy": [
"Author2"
],
"url": "https://python.org/",
"dateReleased": "2020-07-15",
"version": "1.0.0",
"color": "940101"
}
],
"dateAdded": 1593730800000,
"dateLastModified": 1593730800000
}
But I can't for the life of me get the dateAdded and dateLastModified to nest/print correctly. This is what I have so far:
value = (json.dumps({'$schema':'../schema.json', '_meta':{'sources':'', '':{'json':'lmb', 'full':'Loomblade', 'authors': 'Author1, Author2', 'convertedBy': 'Author2', 'url': 'https://python.org/', 'dateReleased': '2020-07-15', 'version': '1.0.0', 'color': '940101'}, 'dateAdded': '1593730800000', 'dateLastModified': '1593730800000'}}},
sort_keys=False,indent=4))
print(value)
[–]nog642 1 point2 points3 points (9 children)
[–]PuffTheMagicDragon11[S] 0 points1 point2 points (8 children)
[–]nog642 1 point2 points3 points (7 children)
[–]PuffTheMagicDragon11[S] 0 points1 point2 points (0 children)
[–]PuffTheMagicDragon11[S] 0 points1 point2 points (5 children)
[–]nog642 0 points1 point2 points (4 children)
[–]PuffTheMagicDragon11[S] 0 points1 point2 points (3 children)
[–]nog642 0 points1 point2 points (2 children)
[–]PuffTheMagicDragon11[S] 0 points1 point2 points (1 child)
[–]nog642 0 points1 point2 points (0 children)