Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Converts a text to JSON for MongoDB.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
MongoDB | 13.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Text | The text to save. | "Hello World" | |
Encoding | The text encoding for text parameter. Default is UTF-8. |
"UTF-8" | Optional |
Returns JSON or error.
Convert text to binary:
MBS( "MongoDB.TextToBinary"; "Hello World")
Example result:
{ "$binary" : { "base64" : "SGVsbG8gV29ybGQ=", "subType" : "00" }
This function is free to use.
Created 15th March 2023, last changed 15th March 2023