JSON field Problem

Hi.

I am new to JSON and I dont know how to read array fields from a file :

Part of the json file I want to read from is as follows:

{
  "ServerTime" : "2019-09-24 23:20:41",
   "app_version" : "4.10717",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "trend" : 2
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}

Reading the "ServerTime" and "app_version" fields works fine
with this program :

 #include<arduinoJson.h>

etc
etc.



 StaticJsonBuffer<1024> json_buf;
  JsonObject &root = json_buf.parseObject(jsonArray);
  if (!root.success())
  {
    Serial.println("parseObject() failed");
  }

  String location = root["ServerTime"];
  String country = root["app_version"];

But how do I read "AddjMulti" and "AddjMulti2" ???

Have you tried

float am1 = root["result"][0]["AddjMulti"];