Open blob84 opened 3 years ago
Upon making a call to a product page with the expectation of response type of 'application/json' you must end your page request with '.js' or '.json' and return the default JSON object for that product.
Alternatively if you want to convert an object to json request it without the json type to retrieve the contents of your custom page as plain text, then use JSON.parse to convert the response data into a json usable object.
Hello how to get response data in json format or convert object in json format? Is there a method that accomplish that?
Thanks.