Read rules from JSON object