Elektrine lite

← Feed

@pft@infosec.exchange

2026-09-23 18:50 UTC

RE: https://infosec.exchange/@pft/117279724505813497 YAML is not readableParsing YAML is a painIt unsafe by defaultIt's not in your standard lib (a 3rd party dep, that you don't need)It's not standardized https://www.xenguard.app/blog/2026-08-24_on-avoiding-yaml/ #yaml #json #xml

Replies (2)

  • @ajn142@infosec.exchange 2026-09-23 19:10

    @pft@infosec.exchange counterpoint: YAML has comments

    Open ##4821993

  • @pft@infosec.exchange 2026-09-24 07:43

    "Excuse me Sir, how can I define arrays in #YAML?" # NOTE: flow style is similar to vanilla JSON. # The following examples start with flow # style and then the 'human-readable' # block style. # ----------------- EXAMPLE 1 ----------------- # ## Flow style [1,2,3] ## Block style with YOLO spacing before elements - 1 - 2 - 3 ## Block style with YOLO spacing before the block - 1 - 2 - 3 # ----------------- EXAMPLE 2 ----------------- # # Flow style [[[[1, 2], [3]], [[4]]]] ## Compact block style - - - - 1 - 2 - - 3 - - - 4 ## Block style with one level per line - - - - 1 - 2 - - 3 - - - 4 ## Block style with YOLO mix and match - - - - 1 - 2 - - 3 - - - 4 # ----------------- EXAMPLE 3 ----------------- # # Flow style [1, "2 - 3"] ## Because when will you ever have an extra erronous space in your code? - 1 - 2 - 3

    Open ##5130848