Serialize Peregrin::Book to JSON

This is the first lines I've ever written in ruby, so please bear with me!