repositories: modify Impl classes to support JSON output