Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json response? #150

Open
glynhudson opened this issue Sep 6, 2018 · 1 comment
Open

Json response? #150

glynhudson opened this issue Sep 6, 2018 · 1 comment

Comments

@glynhudson
Copy link

Is it possible to obtain a json responce?

e.g @shop_orders << Bigcommerce::Order.find(@order.id) reurns a space sperated string.

#<Bigcommerce::Order base_handling_cost="0.0000" base_shipping_cost="12.3800" base_wrapping_cost="0.0000" billing_address={:first_name=>"Jari", :last_name=>"xxxx", :company=>"", :street_1=>"Niinikuja 4", :street_2=>"", :city=>"Tampere", :state=>"", :zip=>"33900", :country=>"xxxxx", :country_iso2=>"FI", :phone=>"xxxxxxxxxxx", :email=>"xxxxxxxx", :form_fields=>[]} coupon_discount="0.0000" coupons={:url=>"https://xxxxxxxxxx/api/v2/orders/xxxx/coupons.json",
:resource=>"/orders/18xxx434/coupons"} credit_card_type=nil currency_code="GBP" currency_exchange_rate="1.0000000000" currency_id=1 customer_id=10100........
@sshaw
Copy link

sshaw commented Nov 25, 2022

I think you'd have to convert it yourself: puts order.to_json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants