1289285 Fix JSON binary encode and decode errors

1 file Authored by jdennis 14 years ago, Committed by rcritten 14 years ago,
    Fix JSON binary encode and decode errors
    
    Traverse the objects passed to JSON for encoding and decoding.
    When binary data is seen during encode replace the binary
    data with a dict {'__base64__' : base64_encoding_of_binary_value}.
    
    On decode if a dict is seen whose single key is '__base64__' replace
    that dict with the base64 decoded value of the key's value.
    
        
file modified
+99 -2