json serialization of builds (closes #150)