Fix Stat#to_json to include relevant data