in reply to Can I prevent JSON encode from converting values

Does { $var => sprintf("%.01f",$var) } solve all possible cases?
Sorry if my advice was wrong.