JSON API extension for the swarm platform