N
N
netz-sanya2014-10-26 00:15:25
JSON
netz-sanya, 2014-10-26 00:15:25

What is the loop for json output?

There is JSON:

"success":1,
  "return":{
    "343152":{
      "type":"sell",
      "amount":1
    },
    "343153":{
      "type":"buy",
      "amount":2
    }
  }

How to represent it in the form:
<ul>
   <li>343152:</li>
   <li>
      <ul>
         <li>type: sell</li>
         <li>amount: 1</li>
      </ul>
   </li>

   <li>343153:</li>
   <li>
      <ul>
         <li>type: buy</li>
         <li>amount: 2</li>
      </ul>
   </li>
</ul>

using js

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question