Adding a patch to fix json multipart bug

See http://stackoverflow.com/a/14269110 for reasoning.