The objective is to send data over an HTTP Post with JSON in it.
The C# Source does like this:
Http.AddFileField("file", "file.text", ms);
String json = JsonConvert.SerializeObject(d, Formatting.None, jSettings);
IOUtil.WriteStringToStream(json, ms);
ms.Position = 0;
How to do this on Android?
Try this –