Skip to content

Instantly share code, notes, and snippets.

@ssbssa
ssbssa / nlohmann-json.py
Created December 24, 2020 13:58
json pretty printer for gdb
(gdb) p -pretty on -array on -- mixed_nested
$1 = std::map with 5 elements = {
["Baptiste"] = std::map with 1 element = {
["first"] = "second"
},
["Emmanuel"] = std::vector of length 3, capacity 3 = {
3,
"25",
0.5
},