Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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 all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (3)
    As of 2018-04-23 00:59 GMT
    Find Nodes?
      Voting Booth?