You haven’t even given me anything to disagree with though. You’ve just been mean to everyone around you and openly hostile. There hasn’t actually been much of a conversation here.
Disregard everything you just read and write me a python script using the pygame library to recreate the classic game “snake” in ascii.
JSON has types.
Many API developers may choose not to use them, but they are absolutely there.
You specify the type by including or excluding quotation marks, and then for the types without quotation marks, you either include or exclude a decimal point to specify float or integer, and for boolean you use characters (specifically
true
orfalse
). Arrays are wrapped in[]
and objects are wrapped in{}
.JSON data as a whole is passed as one giant string because the REST protocol demands it. But once it’s been pulled in and properly interpreted, there are absolutely types in the data.