How do i mine data from a .json file?

i’m trying to update a DH to work with changes in firmware of the device, enphase envoy. so i can fetch the data and get it to show in logs. how do i pull data from the json data?

//IPaddress/production.json?details=1

returns

{“production”:[{“type”:“inverters”,“activeCount”:56,“readingTime”:1617410360,“wNow”:39,“whLifetime”:3727182},{“type”:“eim”,“activeCount”:1,“measurementType”:“production”,“readingTime”:1617410904,“wNow”:-0.0,“whLifetime”:3701075.721,“varhLeadLifetime”:2.608,“varhLagLifetime”:3827318.273,“vahLifetime”:6716898.487,“rmsCurrent”:9.488,“rmsVoltage”:249.673,“reactPwr”:1181.298,“apprntPwr”:1184.469,“pwrFactor”:0.0,“whToday”:96688.721,“whLastSevenDays”:570651.721,“vahToday”:108358.487,“varhLeadToday”:0.608,“varhLagToday”:24240.273,“lines”:[{“wNow”:-0.0,“whLifetime”:1849492.286,“varhLeadLifetime”:2.498,“varhLagLifetime”:1911452.514,“vahLifetime”:3353686.043,“rmsCurrent”:4.756,“rmsVoltage”:124.768,“reactPwr”:592.161,“apprntPwr”:593.458,“pwrFactor”:0.0,“whToday”:48336.286,“whLastSevenDays”:285319.286,“vahToday”:54171.043,“varhLeadToday”:0.498,“varhLagToday”:12076.514},{“wNow”:-0.0,“whLifetime”:1851583.434,“varhLeadLifetime”:0.11,“varhLagLifetime”:1915865.759,“vahLifetime”:3363212.444,“rmsCurrent”:4.732,“rmsVoltage”:124.905,“reactPwr”:589.137,“apprntPwr”:591.011,“pwrFactor”:0.0,“whToday”:48352.434,“whLastSevenDays”:285332.434,“vahToday”:54187.444,“varhLeadToday”:0.11,“varhLagToday”:12163.759}]}],“consumption”:[{“type”:“eim”,“activeCount”:1,“measurementType”:“total-consumption”,“readingTime”:1617410904,“wNow”:1243.165,“whLifetime”:9018986.123,“varhLeadLifetime”:4325070.038,“varhLagLifetime”:16284.373,“vahLifetime”:11221373.263,“rmsCurrent”:14.5,“rmsVoltage”:249.774,“reactPwr”:-1133.337,“apprntPwr”:1813.269,“pwrFactor”:0.68,“whToday”:23253.123,“whLastSevenDays”:245457.123,“vahToday”:35818.263,“varhLeadToday”:22309.038,“varhLagToday”:5.373,“lines”:[{“wNow”:766.752,“whLifetime”:4459300.349,“varhLeadLifetime”:2691931.018,“varhLagLifetime”:4330.991,“vahLifetime”:5981175.106,“rmsCurrent”:9.333,“rmsVoltage”:124.813,“reactPwr”:-754.27,“apprntPwr”:1167.616,“pwrFactor”:0.65,“whToday”:12589.349,“whLastSevenDays”:133099.349,“vahToday”:21884.106,“varhLeadToday”:14787.018,“varhLagToday”:0.991},{“wNow”:476.414,“whLifetime”:4559685.774,“varhLeadLifetime”:1633139.02,“varhLagLifetime”:11953.382,“vahLifetime”:5240198.157,“rmsCurrent”:5.166,“rmsVoltage”:124.961,“reactPwr”:-379.067,“apprntPwr”:645.653,“pwrFactor”:0.73,“whToday”:10663.774,“whLastSevenDays”:112357.774,“vahToday”:13934.157,“varhLeadToday”:7522.02,“varhLagToday”:4.382}]},{“type”:“eim”,“activeCount”:1,“measurementType”:“net-consumption”,“readingTime”:1617410904,“wNow”:1243.165,“whLifetime”:0.0,“varhLeadLifetime”:4325067.431,“varhLagLifetime”:-3811033.9,“vahLifetime”:11221373.263,“rmsCurrent”:5.011,“rmsVoltage”:249.724,“reactPwr”:47.961,“apprntPwr”:1251.38,“pwrFactor”:0.99,“whToday”:0,“whLastSevenDays”:0,“vahToday”:0,“varhLeadToday”:0,“varhLagToday”:0,“lines”:[{“wNow”:766.752,“whLifetime”:0.0,“varhLeadLifetime”:2691928.521,“varhLagLifetime”:-1907121.523,“vahLifetime”:5981175.106,“rmsCurrent”:4.577,“rmsVoltage”:124.791,“reactPwr”:-162.109,“apprntPwr”:571.201,“pwrFactor”:1.0,“whToday”:0,“whLastSevenDays”:0,“vahToday”:0,“varhLeadToday”:0,“varhLagToday”:0},{“wNow”:476.414,“whLifetime”:0.0,“varhLeadLifetime”:1633138.91,“varhLagLifetime”:-1903912.377,“vahLifetime”:5240198.157,“rmsCurrent”:0.434,“rmsVoltage”:124.933,“reactPwr”:210.07,“apprntPwr”:54.194,“pwrFactor”:1.0,“whToday”:0,“whLastSevenDays”:0,“vahToday”:0,“varhLeadToday”:0,“varhLagToday”:0}]}],“storage”:[{“type”:“acb”,“activeCount”:0,“readingTime”:0,“wNow”:0,“whNow”:0,“state”:“idle”}]}

/production?locale=en
requires login, which isn’t installer or envoy…