simpleJSON pack binary data

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sun Jul 22 04:57:52 EDT 2007


En Sat, 21 Jul 2007 23:13:22 -0300, Andrey <alpha04 at netvigator.com>  
escribió:

> Is it possible to pack binary data into simplejson?

json does not provide any direct "binary" type; strings are Unicode  
strings. Try encoding your data using Base64 for example, or transform it  
into an array of numbers.

-- 
Gabriel Genellina




More information about the Python-list mailing list