S
S
Sergey Dydaevskiy2018-05-05 01:53:53
Google
Sergey Dydaevskiy, 2018-05-05 01:53:53

Google Buisnes - How to insert only one review and from one specific person?

There is such a blank:
https://goo.gl/LtZDqe
This blank allows you to insert data obtained from reviews on your website.
The data is received in json. Even I’m radically dumb and can’t figure out how to display only one specific review, for example, starting from the name and surname of the person who wrote the review.
Tried like this:
$.each(json.result.reviews[author_name="Sergey Kaverin"]
Didn't work (.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Codebaker, 2018-05-05
@dydikson

$.each(json.result.reviews, function(i,v) {

        if (v.author_name === "Имя Человека") {
           (... старый код метода ....)
        }
     });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question