add json constants to toJson call