This is now complete. Check out the announcement in the blog, and the documentation for the new JSON function.
The canvas JSON function added last year will base64 encode images and media. We don't have a way to convert other data types to binary, to then be base64 encoded; if there is more need here please tell us more about your scenarios.