how can get error message from josn?

Open in new window

Hamdan ShafiqFull Stack PHP DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
This expert suggested creating a Gigs project.
This will take a good bit of work to figure out.

Someone will have to get into your CreateHWB.aspx code + determine what's wrong, how to raise exceptions, how best to pass them back to whatever consumers/code that uses this facility.

Likely best to open a Gig for fastest resolution.
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
the request returned with a json message:

[["ShipAddress is null"]]

Open in new window

you got to check the documentation what is mean by this json message.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hamdan ShafiqFull Stack PHP DeveloperAuthor Commented:
 $ch = curl_init();
  $timeout = 0;
  curl_setopt ($ch, CURLOPT_URL, $url);
  curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

  curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)");
  curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  $response= curl_exec($ch);
  if (!$response){
  return $response;

Open in new window

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
if you mean to return the json content only, then you should try:

  $ar = json_decode($response);
  $rtn = $ar[0][0];
  return $rtn;

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.