MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y1rd5z/commentsinjson/19syruu2b21r4/
r/ProgrammerHumor • u/Recent-Analysis-6880 • 7d ago • 1
205 comments sorted by
View all comments
Show parent comment
19
{"__comment__": "A comment"}
14 u/meifray 7d ago { "key":"value", "key_comment":"le comment" } 2 u/Cisco-NintendoSwitch 7d ago Shitpost aside do people actually do this? I’m a Platform Engineer so YAML all day (Terraform / Ansible) 7 u/stipo42 7d ago Then your marshalling library throws "unexpected key" 3 u/TerryHarris408 7d ago they do that? I need to get my nlohmann up to that point. would help me a lot with schema migration tests 2 u/TerminalVector 7d ago It's usually a config option to either error or silently discard an unexpected key 2 u/Meltz014 6d ago "additionalProperties": false 1 u/stipo42 7d ago Some do, some don't, some can. Just read the docs
14
{ "key":"value", "key_comment":"le comment" }
2 u/Cisco-NintendoSwitch 7d ago Shitpost aside do people actually do this? I’m a Platform Engineer so YAML all day (Terraform / Ansible)
2
Shitpost aside do people actually do this? I’m a Platform Engineer so YAML all day (Terraform / Ansible)
7
Then your marshalling library throws "unexpected key"
3 u/TerryHarris408 7d ago they do that? I need to get my nlohmann up to that point. would help me a lot with schema migration tests 2 u/TerminalVector 7d ago It's usually a config option to either error or silently discard an unexpected key 2 u/Meltz014 6d ago "additionalProperties": false 1 u/stipo42 7d ago Some do, some don't, some can. Just read the docs
3
they do that? I need to get my nlohmann up to that point. would help me a lot with schema migration tests
2 u/TerminalVector 7d ago It's usually a config option to either error or silently discard an unexpected key 2 u/Meltz014 6d ago "additionalProperties": false 1 u/stipo42 7d ago Some do, some don't, some can. Just read the docs
It's usually a config option to either error or silently discard an unexpected key
"additionalProperties": false
1
Some do, some don't, some can. Just read the docs
View all comments
Show parent comment
19
u/HipstCapitalist 7d ago