Input json to all monitoring tests and change API

There cannot be any non-string keys in JavaScript objects, and there was a
redundant array in daemon->server monitoring query