testing the OR logic in the JSON handler