support json and double metrics