Fix JSON decoding of top-level links