Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Integration with Fluxstore app technical question › Reply To: Integration with Fluxstore app technical question
May 9, 2022 at 9:18 am
#37739
Keymaster
Hi,
By default the plugin returns structured HTML output with additional information via JSON separated by delimiters. The JSON information is returned as a string inbetween !!ASPSTART_DATA!! and !!ASPEND_DATA!! delimiters.
This data can be parsed from the XHR response like this:
data_response = response.match(/!!ASPSTART_DATA!!(.*[\s\S]*)!!ASPEND_DATA!!/);
data_response = JSON.parse(data_response[1]);
The data_response variable wil contain the results as an object array. This is a javascript example, but the same can be achieved with any other programming language.