api/server: Add missing json check Upstream-commit: 26a35dd09b4faf39a99ff224f5cd4e14ae368585 Component: engine