fixed json serialization problem #2845