<?php header("Content-Type: text/plain"); $fronters = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/gdapd/fronters.json"), true); echo(json_encode([ "multiple" => count($fronters["members"]) > 1 ]));