A
A
Amigun2020-02-20 16:21:55
JSON
Amigun, 2020-02-20 16:21:55

How to get key value from JSON in Pascal?

I work with vk_api through Pascal, and the response comes in json format .
For example:

{"response":{"count":139,"items":[{"id":9999999999,"first_name":"Имя1","last_name":"Фамилия1","is_closed":false,"can_access_closed":true,"nickname":"","online":0,"track_code":"4a97b9723K"},{"id":9999999999,"first_name":"Имя2","last_name":"Фамилия2","is_closed":false,"can_access_closed":true,"nickname":"","online":0,"lists":[26],"track_code":"c0d95e40nU"}]}}

How can I filter this response so that I get first_name and last_name ?
I tried to search on Google, but either I did not search well, or there is nothing on this topic, because I could not find it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Farwisdomer, 2020-02-20
@Farwisdomer

https://wiki.freepascal.org/fcl-json

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question