in reply to Re: json::xs arrays
in thread json::xs arrays

it only parse email not accessing other data in array

its the problem i was facing

{ "data" : "status", "data_info" : { "info" : "user", "deluser" : [ { "names" : "john doe", "age" : 28, "location" : [ { "country" : "ca", } ], "email" : [ "john@email.com" ], "cf" : 1.0, "pr" : null } ] } }

Replies are listed 'Best First'.
Re^3: json::xs arrays
by AnomalousMonk (Archbishop) on Mar 29, 2017 at 15:05 UTC

    Note that the JSON string you present in this post is different from the one presented in the OP and so does not match with choroba's code here. Is
        "del_info" : [ ... ]
    or
        "deluser" : [ ... ]
    correct? (Everything else seems the same.)

    Update: Another link that might be helpful in dealing with the complex data structures that can be produced by JSON parsing is the Perl Data Structures Cookbook (or perldsc).


    Give a man a fish:  <%-{-{-{-<