fix json data for agentd rest api