skepller@lemmy.world to Programmer Humor@lemmy.mlEnglish · 7 hours agoTOMLlemmy.mlimagemessage-square12fedilinkarrow-up159arrow-down11file-text
arrow-up158arrow-down1imageTOMLlemmy.mlskepller@lemmy.world to Programmer Humor@lemmy.mlEnglish · 7 hours agomessage-square12fedilinkfile-text
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up3·5 hours agoThey serve largely different use-cases. JSON is good for serializing data. TOML is good for configuration.
minus-squareViatorOmnium@piefed.sociallinkfedilinkEnglisharrow-up1·3 hours agoJSON5 or even JSONC are as good as TOML for configuration, if not better.
minus-squareell1e@leminal.spacelinkfedilinkEnglisharrow-up1·edit-232 minutes agoINI can be nicer for non-techies due to its flat structure. However, TOML seems to be in an awkward spot: either I want flat approachable (I’ll pick INI) or not (I’ll pick JSONC). Why would I want a mix?
They serve largely different use-cases. JSON is good for serializing data. TOML is good for configuration.
JSON5 or even JSONC are as good as TOML for configuration, if not better.
INI can be nicer for non-techies due to its flat structure. However, TOML seems to be in an awkward spot: either I want flat approachable (I’ll pick INI) or not (I’ll pick JSONC). Why would I want a mix?