D
D
Dvorak2016-08-19 11:17:01
Google Maps
Dvorak, 2016-08-19 11:17:01

How to properly convert Buffer?

I work with Google Maps API. Data from Google comes in Buffer format. If I execute data.toString(), I get a JSON file. When I try to parse it into an object, I get SyntaxError: Unexpected end of JSON input.
How can you convert all this into an object?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question