Move the parsing JSON function from AbstractBaseController to
NuxeoResource