title: Using pjson library to get Yahoo stock quotes
body: <p>I'm starting to learn J, so I have a basic question regarding a simple function reading a JSON with pjson library (J 8.0.7 beta, Windows 10):</p>
  
  <pre><code>load 'web/gethttp'
  load 'convert/pjson'
  
  stock=: 3 : 0
  jsonstr =: gethttp 'https://query1.finance.yahoo.com/v7/finance/quote?symbols=',y
  dp =: dec_pjson_ jsonstr
  )
  </code></pre>
  
  <p>I didn't get how to search for and get a value from the decoded JSON or unbox the result in 'dp', using the basic verbs (> or &amp;.> to recursively reach the value I want). How can I do that?</p>
  
  <p>I made it through with the 'raw' JSON string, but in a (I suspect) dumb way (modulo error checking):</p>
  
  <pre><code>load 'web/gethttp'
  
  stock=: 3 : 0
  jsonstr =: gethttp 'https://query1.finance.yahoo.com/v7/finance/quote?symbols=',y
  sdp=: ;: jsonstr                                NB. boxes the raw JSON string in word cells
  matchstr=:('regularMarketPrice' &amp; e.) &amp;.&gt; sdp   NB. find string on each cell - return cells with 1's for each matching char
  summatch=:+/ &amp;.&gt; matchstr                       NB. sum the 1's in each cell
  vec=: &gt; summatch                                NB. unbox to a vector
  index =: (i. &gt;./) vec                           NB. find the index of the biggest number - is our searched string
  tit=: index } sdp                               NB. Use index to get the title
  val =: (index+2) } sdp                          NB. Use index to get the value
  tit,val
  )
  stock 'PETR4.SA'
  </code></pre>
  
  <p>In case of not being possible to use the pjson, is there a better way to express the raw string version?</p>
  
  <p>Thanks in advance!</p>