How to filter the following YML collection?

I have the following in my data/assets.yml:

js:
  a:
    version: <some version>
    url: <url>
    async: true
  b:
    version: <some version>
    url: <url>

I want to filter down the $site.Data.assets.js collection so that it only includes objects in which async is true.
Is it possible? Or am I required to change the format to:

js:
   - name: bla bla bla
   - version: ....
....

This is related to:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.