[#107] add to_json method to model
[#107] add json option to index and show methods