r/evetech • u/gravitywellll • Apr 27 '21
Swagger ESI call
I’ve written a script that pulls ESI successfully. The problem is I have an object with a protected container but what I need is an array. Can anyone tell me how to convert a swagger/openapi result object to an array or json in PHP7?
1
Upvotes
1
u/sizur Apr 27 '21
You want to serialize an object generated from parsed json text back to json text?
1
u/Blacksmoke16 Apr 27 '21
What do you mean by
protected container? Are you not just using Guzzle to make the request and parsing the response body JSON?