-
Notifications
You must be signed in to change notification settings - Fork 0
JSON to Share URI
v2rayroot edited this page Jun 14, 2026
·
1 revision
char *JSONToConfigString(char *configJSON);Converts an eligible Xray outbound into:
vless://vmess://trojan://ss://
The converter chooses:
- Outbound tagged
Proxy - First outbound not tagged
DirectorReject - First outbound as a fallback
Unsupported, invalid, or incomplete JSON returns an allocated empty string.
Conversion can be lossy because not every Xray JSON field has an equivalent share-URI parameter. Preserve original JSON when exact round trips matter.
If streamSettings is absent, conversion assumes TCP with no security.