How to access field content with the API?

Hi,

I’m playing with the API and have read the documentation to learn how it works.
I did my tests on the starterkit.

I don’t understand how I can fetch the content of a field …

for instance, if I run this request to get the “about” page data:

$response_about = Remote::get('http://localhost:1515/rest/pages/about', [
  'headers' => [
    'Authorization: Basic ' . base64_encode($email . ':' . $password)
  ]
]);

and var_dump($response_about->content()) I get a String which looks like:

string(1931) "{"code":"200","data":{"content":{"text":"Far far away, behind the word mountains, far from the countries Voka ...

What can I do with this String?
How can I access to the “text” field content only for instance?

I probably missed something …

See here: https://getkirby.com/docs/guide/api/authentication#http-basic-auth__example

You json_decode the string, so that you get an array you can then work with.

Indeed, I did miss something :wink:
As usual, thank you Sonja