You can write the binary data as a string by using the binarydata.getbase64 expression. You can put this string into an array if you wish. The array can the be saved and loaded as json as normal, and then you can load it into the binary data plugin again with the set from base64 expression.
As the manual notes, this is significantly less efficient than using the ajax object to post binary data directly to a server directly.