/* Parser a string to get a primitive value. If the first character after the value is different of '}' or ']' is set to '\0'.  */
static char* primitiveValue(char *ptr, json_t *property, char const *value, jsonType_t type)
/* Parser a string to get a primitive value. If the first character after the value is different of '}' or ']' is set to '\0'.  */
static char* primitiveValue(char *ptr, json_t *property, char const *value, jsonType_t type)
{
    ptr = checkStr(ptr, value);
    if (!ptr || !isEndOfPrimitive(*ptr))
        return 0;
    ptr            = setToNull(ptr);
    property->type = type;
    return ptr;
}