Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

i have a variable like $list having some value

$list = "res":{ "url":"http://www.astm.org/FULL_TEXT/D5447/HTML/D5447. +htm", "title":"Standard Guide for Application of a Groundwater Flow M +odel to a Site-Specific Problem ", "snippet":"1.1 This guide covers t +he application and subsequent documentation of a groundwater flow mod +el to a particular site or problem. In this context, x201C; groundwat +er flow model x201D; refers to the application of a mathematical mode +l to the solution of a site-specific groundwater flow problem. 1.2 Th +is guide illustrates the major steps to take in developing a groundwa +ter flow model that ", "meta":{"gs_designation":"D5447","mc_section": +"04","mc_maincomm":"D18","mc_date":"2010","mc_dltype":"allstd,active" +,"mc_doctype":"Active Standard","mc_addtocart":"PDF-D5447","mc_login" +:"true","mc_suburl":"/SUBSCRIPTION/filtrexx40.cgi?+/usr6/htdocs/newpi +lot.com/SUBSCRIPTION/REDLINE_PAGES/D5447.htm","mc_relatedurl":"D5447_ +related.htm","mc_keywords":" computer model~ groundwater~ simulation~ + Ground-water model~ ICS Number Code 13.060.10 (Water of natural reso +urces)","gs_year":"04(2010)","gs_collection":"EEE,EEE,OOO","gs_homebo +ok":"0408 CS04" } }}

i want to extract url ,title ,date from this variable. please help me how could this be possible using JSON.


In reply to HOw to extract data using json by Priti24

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others scrutinizing the Monastery: (12)
    As of 2014-10-30 16:22 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      For retirement, I am banking on:










      Results (208 votes), past polls