JSON Brace Debugging
{ "name": "Jon", "age": 18, "normalHits": 2, "silentHits": 3, "randomHits": 5 } private void SaveFunction(PlayerProfile playerProfile) { string jsonString = JsonUtility.ToJson(playerProfile,true); if (jsonString != string.Empty) jsonString += "\n"; File.AppendAllText(filepath,jsonString); } { "name": "Jon", "age": 18, "normalHits": 2, "silentHits": 3, "randomHits": 5 } { "name": "Jon", "age": 18, "normalHits": 2, "silentHits": 3, "randomHits": 5 }
A programming screenshot shows JSON data and a C# function that serializes a player profile, beside two contrasting dog reactions. The joke is that a tiny formatting or brace mistake in the code can make the programmer sad, while fixing it makes them happy; it is used as a reaction to debugging trivial but frustrating coding errors.
sad dog / грустная собакаhappy fluffy dog / счастливая пушистая собакаJSON code / код JSONC# source code / исходный код Ccode editor / редактор кодаtext file / текстовый файлcurly braces / фигурные скобкиprogramming function / функция программированияplayer profile / профиль игрокаblack background / чёрный фонwhite code text / белый текст кода
- @profunctor_io / 1656 2019-02-12
- Type
- image
- Size
- 469×543 · 51.9 KiB
- Mood
- полусаркастичный / sarcastic
- Language
- en
- Added