by irthomasthomas · 3y ago · 0 comments
You can compare JSON and YAML on https://platform.openai.com/tokenizer
"{" + $someKey + ":" + $someValue + "}"
produces a valid JSON. It does - sometimes - and then it's indeed easier to work with. It'll also blow up in your face. Using JSON the right way - via a proper parser and serializer - should be identical to using YAML or any other equivalent format.