Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

441
Views
How to format a json from an URL on php?

I got a JSON from an URL like this:

http://myweb.com/ws_clc/ws_info.php?uid=77317

JSON:

{  
   "status":1,
   "info":[  
      {  
         "uid":"77317",
         "name":"Jack",
         "lastname":"Black",
         "email":"jackblack@mail.com"
      }
   ]
}

I need to format that JSON on HTML. ¿How can I do that?

THANKS!!! I did it like this:

<?php
$uid =$_GET['uid'];
$json = file_get_contents('http://myweb.com/ws_clc/ws_info.php?uid='.$uid);
$obj = json_decode($json);
$uid= $obj->info[0]->uid;
$name = $obj->info[0]->name;
$lastname = $obj->info[0]->lastname;

echo $name;
echo $lastname;
?>
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!