This package provides an API for parsing from and serialising to yaml.
Simply install to your project:
sampctl package install Southclaws/pawn-yaml
Include in your code and begin using the library:
#include <yaml>
It has the same API as pawn-json so just read those docs and imagine every instance of "json" replaced with "yaml".