Android Question map to json conversion

Discussion in 'Android Questions' started by laomms, Apr 13, 2019.

Similar threads

Games [XUI2D] Example Pack
B4A Tutorial Android JSON tutorial
B4A Tutorial Text files
B4A Tutorial Google Maps
B4A Question Write 2 map views to a single txt file
  1. laomms

    laomms Member Licensed User

    I want send json string to webrequest:

    Dim Map1 As Map
    Dim Map2 As Map
    Dim JSON As JSONGenerator
                data=   JSON.ToString
    Is right?
  2. DonManfred

    DonManfred Expert Licensed User

    i guess it should be

    dim l as list
    did you get any error? Why you did not posted the error you got?
  3. laomms

    laomms Member Licensed User

    it's show error:
    Innermost cause of throwable is Cannot deserialize instance of java.util.ArrayList out of START_OBJECT token\n at [Source: (PushbackInputStream); line: 1, column: 34] (through reference chain:[\"param\"])"

    the error come from target website.

    I can post normal use below code:
    jsonText = "{""Type"":""AAA"",""param"":[{""paramName"":""C1"",""paramValue"":""25""}],""variables"":{}}"
    I want to know how to made it in map ways。
    it's no "[]" punctuation
    Last edited: Apr 13, 2019
  4. laomms

    laomms Member Licensed User

    ok. got it

    Last edited: Apr 13, 2019
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice