Android Question Parsing JSON to BBCode

PumaCyan

Member
Licensed User
How to put json parsing results into bbcode
I'm still confused to put the coding variable inside bbcode.text = " "
I want to look my design like a blog or news like a website that contains titles, images and descriptions
thank's before...



This my result:
Dim parser As JSONParser
    parser.Initialize(strReturn)
    Dim root As List = parser.NextArray
    For Each colroot As Map In root
        Dim TL1 As TWL
        TL1.A = colroot.Get("id")
        TL1.B = colroot.Get("image")
        TL1.C = colroot.Get("post")
        TL1.D = colroot.Get("title")
        TL1.E = colroot.Get("desc")
    Next
'
BBCodeView1.text = " .... " ?
 

PumaCyan

Member
Licensed User
My Code:
Sub JobDone (Job As HttpJob)
    ProgressDialogHide
    If Job.Success = True Then
        Dim strReturn As String = Job.GetString
        Dim parser As JSONParser
        parser.Initialize(strReturn)
        Dim root As List = parser.NextArray
        For Each colroot As Map In root
            Dim TL1 As TWL
            TL1.A = colroot.Get("ID")
            TL1.B = colroot.Get("image")
            TL1.C = colroot.Get("post")
            TL1.D = colroot.Get("title")
            TL1.E = colroot.Get("desc")
        Next
        '
        BBCodeView1.Text = TL1.D & CRLF & CRLF & TL1.E
    Else
        MsgboxAsync(Job.ErrorMessage, "Error")
    End If
    Job.Release
End Sub

And this Result :

Screenshot_20200511-163811.png
 
Upvote 0
Top