Hellow everybody
I have a problem when send json string with patchstring the problem is that json.Put("Videos",CreateMap(videoname:videoUrl)) replace old string i need to append it not replace
my code is
I have a problem when send json string with patchstring the problem is that json.Put("Videos",CreateMap(videoname:videoUrl)) replace old string i need to append it not replace
my code is
json2:
Dim json As Map
json.Initialize
json.Put("Active",Active)
json.Put("ID",ID)
json.Put("UserName",UserName)
json.Put("Country",Country1)
json.Put("Img",Img)
json.Put("Email",Email1)
If videoUrl ="" Then
Else
json.Put("Videos",CreateMap(videoname:videoUrl)) 'probleme hier it replace old string
' my json is :
' Active :"ON"
' Country :""
' Email:"myemail"
' ID:"myid"
' Img:"imglink"
' UserName:"myname"
' Videos
' videos253998 :"videoslink" ' it replace this string hier
End If
Dim jgen As JSONGenerator
jgen.Initialize(json)
Log(jgen.ToPrettyString(2))
Dim j As HttpJob : j.Initialize("",Me)
j.PatchString(Urlpath,jgen.ToString)