qaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-22 个月前Why shouldn't you use YAML to store eye tracking data? /slemmy.worldimagemessage-square55linkfedilinkarrow-up1189arrow-down13
arrow-up1186arrow-down1imageWhy shouldn't you use YAML to store eye tracking data? /slemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · edit-22 个月前message-square55linkfedilink
minus-squareTomasEkeli@programming.devlinkfedilinkarrow-up15·2 个月前Valid JSON is valid YAML. So valid YAML can contain JSON
minus-squareDataElemental@programming.devlinkfedilinkarrow-up0arrow-down1·2 个月前That’s a long way from all or most YAML being JSON-compatible. I wonder if more YAML files in the wild parse as Markdown than JSON.
minus-squareTomasEkeli@programming.devlinkfedilinkarrow-up7·2 个月前JSON is valid YAML does not imply that YAML is valid JSON
minus-squareDataElemental@programming.devlinkfedilinkarrow-up1arrow-down1·edit-22 个月前That was my point, yes, but I was replying to @ZoteTheMighty@midwest.social’s suggestion that “all yaml is just sparkling json”.
Valid JSON is valid YAML.
So valid YAML can contain JSON
That’s a long way from all or most YAML being JSON-compatible. I wonder if more YAML files in the wild parse as Markdown than JSON.
JSON is valid YAML does not imply that YAML is valid JSON
That was my point, yes, but I was replying to @ZoteTheMighty@midwest.social’s suggestion that “all yaml is just sparkling json”.