dev7dev / V2ray-Android

A simple Java module with sample source for implementing V2ray/Xray on Android.
47 stars 14 forks source link

give a JSON object as a server instead of a string #23

Closed farzinAndroid closed 2 months ago

farzinAndroid commented 3 months ago

Hi. I have JSON object that is coming from server and that is my server config and it changes to a ServerConfig Object in my app. I was wondering how i can give this kind of object to the library instead of a config String. I noticed you used a JSON object in the pictures but i dont know how to do that.Do i just turn the Object into a String? using Gson or other libraries?. Thanks in Advance.

CodeWithTamim commented 3 months ago

Images are from old library

farzinAndroid commented 3 months ago

So there is no way to do it?

CodeWithTamim commented 3 months ago

So there is no way to do it?

There is actually. Just use the old releases of the library.

dev7dev commented 2 months ago

Hi. I have JSON object that is coming from server and that is my server config and it changes to a ServerConfig Object in my app. I was wondering how i can give this kind of object to the library instead of a config String. I noticed you used a JSON object in the pictures but i dont know how to do that.Do i just turn the Object into a String? using Gson or other libraries?. Thanks in Advance.

All versions of this library support json as string.