size_t Jobs_GetJobId()

in source/jobs.c [963:984]


size_t Jobs_GetJobId( const char * message,
                      size_t messageLength,
                      const char ** jobId )
{
    size_t jobIdLength = 0U;
    JSONStatus_t jsonResult = JSONNotFound;

    jsonResult = JSON_Validate( message, messageLength );

    if( jsonResult == JSONSuccess )
    {
        jsonResult = JSON_SearchConst( message,
                                       messageLength,
                                       "execution.jobId",
                                       CONST_STRLEN( "execution.jobId" ),
                                       jobId,
                                       &jobIdLength,
                                       NULL );
    }

    return jobIdLength;
}