<cfsetting showdebugoutput="false">
<cfsetting enablecfoutputonly="true">
<cfcontent type="application/json; charset=utf-8" reset="true">

<cfquery name="q" datasource="payfrit">
  SELECT ID, UUID, IsActive
  FROM BeaconShards
  ORDER BY ID
</cfquery>

<cfset shards = []>
<cfloop query="q">
  <cfset arrayAppend(shards, {
    "ID": q.ID,
    "UUID": q.UUID,
    "IsActive": q.IsActive
  })>
</cfloop>

<cfoutput>#serializeJSON({ "OK": true, "Shards": shards })#</cfoutput>
