How do I serialize JSON so I can send it to Bonanza?

At its essence, all that JSON serialization is doing is changing some data structure into a string, so it can be sent over HTML. The semantics of converting your data structure to JSON depend on your language. Note that, if your input contains single or double quotation marks (i.e., if you are submitting description text for an item), you will need to CGI escape your JSON before sending it to Bonanza. Here are some resources we've dug up from around the web for working with JSON:

JSON encoding in PHP

http://php.net/manual/en/function.json-encode.php

JSON encoding in Ruby on Rails

data_structure.to_json

JSON encoding in Java

http://json.org/java/

JSON encoding in Python

http://docs.python.org/library/json.html

JSON encoding in C#

http://stackoverflow.com/questions/331976/how-do-i-serialize-a-c-anonymous-type-to-a-json-string

Spinner

You may adjust your notification preferences at any time

Minimum 6 characters; at least one number and one capital letter

If you become a seller on Bonanza, this information will become part of your public profile

New to Bonanza? Sign up to save items, follow sellers and get exclusive coupons.

Don't worry - Bonanza respects your inbox. We send less email and make it easy to opt out. Read our privacy policy »