fix(rest): add workaround for old jackson dependency

- WAS uses a old jackson version which doesn't support the
  EXTERNAL_RESOURCE annotation
- dirty JSON workaround to compile on WAS again

related to #CAM-2628