parse json from algolia search