JavaScript Object Notation (JSON) | Python for Beginners [38 of 44]

preview_player
Показать описание


#microsoftdeveloper #pythonforbeginners #learntocode
Рекомендации по теме
Комментарии
Автор

Actually Visual Studio Code does include a JSON Linting tool: Right-click on the JSON text and select "Format Document".

quicktecha
Автор

This is extremely helpful and clear. Thank you so much!

ahmedroberts
Автор

im so happy that i called an API :) ima let this video for tomorrow, gotta sleep now ;)

zealotbr
Автор

This is so cool...I'm going to learn how the api works

theepicguy
Автор

@1:34 - it gives you that information twice so-as not to break the dependent applications and make the convention change nonbreaking. At some point, maybe they will remove one or the other.

dougb
Автор

this is the best thing on the blue planet....calling an api....happy that it worked :)

akshaykokate
Автор

Instead of using a JSON lint tool, just use `print(json.dumps(json_data), sort_keys=True, ident=4)`

MarcoOchse
Автор

Just add 'indent=4' as in 'person_json = json.dumps(person_dict, indent=4)'. It would print a human readable output. You don't need a third party JSON Linter.

NurArafatShomik
Автор

There is no plugin or functionality for JSON linting in VSCode? (And side-by-view too)

justafreakable
Автор

1:55
Why is there a mix of { and [ brackets?
Is it better to keep it the same or does it affect it?

GaryGrumbles
Автор

why didnt you import json to be defined, it didnt work until i inserted import json before using json.dumps

emanelmoshneb
Автор

[7:26] I think here she made a mistake about the json.dumps(). If you want to convert a dictionary to json object, you should use json.loads(). json.dumps() converts a json object to a python string object

superjzh
join shbcf.ru