Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Comment on

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

i have a variable like $list having some value

$list = "res":{ "url":" +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","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

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?

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

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (6)
    As of 2015-01-28 00:08 GMT
    Find Nodes?
      Voting Booth?

      My top resolution in 2015 is:

      Results (211 votes), past polls