Added source spans as keys in json instead of array.