I have in some file contains this json part (from FACEBOOK API):
--- !seq:Koala::Facebook::API::GraphCollection - name: pop ool id: "1032225" - name: Rose kak id: "2312010"
and in ruby I try to do:
jsonFriends = File.open("friends.json" ,"r")
puts JSON.parse(jsonFriends.readline)
but I get this error:
from /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/json/common.rb:148:in `parse' from try.rb:22:in `<main>'
That’s YAML, not JSON.