Fixed invalid json in API query results. Added total count in response header.
Fixed invalid json in API query results. Added total count in response header.

akcoder/genieacs,sonaht/genieacs,zaidka/genieacs