Anne json

This generates a JSON hash. Here's an example for an order with one item. (Note that anything in [] will be an array of product dimension info for individual products or address info for different vendors)

You can find it at http://localhost:3000/purchases/:id.json

{"purchase_id":1,"order_id":1,"destination":{"address":"1301 Fifth Avenue","city":"SEATTLE","state":"WA"},"dimensions":[{"weight":1,"height":1,"width":1,"length":1}],"origin":[{"street_address_1":"1301 Fifth Avenue","street_address_2":"Suite 1500","city":"SEATTLE","state":"WA","zipcode":"98101"}]}

Audrey, I closed your other pull and didn't include the changes to the db. It worked out that way on my branch. Maybe we can change the column names and stuff in a later refactor?

If you want more resources about JSON and jBuilder, I recommend this Railscast:
http://railscasts.com/episodes/320-jbuilder?view=asciicast