remove json refs in api and server