Help Parsing JSON result



  • Hi guys,
    I'm stuck trying to parse a JSON response.
    I have a request that gives me /api.php?action=get_package_trial&package_id=[250, 253]
    Website response is:
    result:true
    bouquets[ {…}, {…} ]
    0:Object { id: "89", bouquet_name: "1111111", bouquet_channels: […], … }
    id:"89"
    bouquet_name:"1111111"
    bouquet_channels[ 6390, 6551, 3570, 3568, 6776, 7521, 6771, 7522, 7520, 7524, … ]
    bouquet_series[]
    1:Object { id: "87", bouquet_name: "CSAT_SA", bouquet_channels: […], … }
    id: "87"
    bouquet_name: "222222"
    bouquet_channels[ 193, 192, 194, 195, 196, 197, 198, 50, 52, 57, … ]
    bouquet_series[]

    where 250 it's for id=89 and 253 it's for id=87.

    I've checked the guide that Ruri created, but still still not able to do it, any help be apreciated.


  • Mod

    Hey @Paul
    Tell me you want to parse what here



  • hey mate.. thanks for quick reply..
    i need to parse this bouquet_name:"1111111" on both ids


  • Mod

    @Paul do you have try a simple easy LR ?
    In LS:"
    In RS:bouquet_channels
    I think you should not touch the id 89 because this value changes surely try its and if it does not work tomorrow I'll do it for you



  • @Why001 that will work if i have single... but i need to parse both values .. and thats were i am stuck ....


  • Mod

    @Paul look your pm


Log in to reply