{"id":8765,"date":"2022-09-15T10:20:02","date_gmt":"2022-09-15T04:50:02","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/"},"modified":"2022-09-15T10:20:02","modified_gmt":"2022-09-15T04:50:02","slug":"solved-is-atoi-multithread-safe-closed","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/","title":{"rendered":"[Solved] Is atoi multithread safe? [closed]"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-44564130\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"44564130\" data-parentid=\"44563033\" data-score=\"4\" data-position-on-page=\"2\" data-highest-scored=\"0\" data-question-has-accepted-highest-score=\"0\" itemprop=\"suggestedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>Its quite easy to implement a replacement for <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.cppreference.com\/w\/c\/string\/byte\/atoi\"><code>atoi()<\/code><\/a>:<\/p>\n<pre><code>int strToInt(const char *text)\n{\n  int n = 0, sign = 1;\n  switch (*text) {\n    case '-': sign = -1;\n    case '+': ++text;\n  }\n  for (; isdigit(*text); ++text) n *= 10, n += *text - '0';\n  return n * sign;\n}\n<\/code><\/pre>\n<p>(Demonstration on <strong><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/ideone.com\/qA6Yqh\">ideone<\/a><\/strong>)<\/p>\n<p>It doesn&#8217;t seem to make much sense to replace something which is already available. Thus, I want to mention some thouhgts about this.<\/p>\n<p>The implementation can be adjusted to the precise personal requirements:<\/p>\n<ul>\n<li>a check for integer overflow may be added<\/li>\n<li>the final value of <code>text<\/code> may be returned (as in <code>strtol()<\/code>) to check how many characters have been processed or to do further parsing of other contents<\/li>\n<li>a variant might be used for <code>unsigned<\/code> (which does not accept a sign).<\/li>\n<li>preceding spaces may or may not be accepted<\/li>\n<li>special syntax may be considered<\/li>\n<li>and anything else beyound my imagination.<\/li>\n<\/ul>\n<p>Extending this idea to other numeric types like e.g. <code>float<\/code> or <code>double<\/code>, it becomes even more interesting.<\/p>\n<p>As floating point numbers are definitely subject of localization this has to be considered. (Concerning decimal integer numbers I&#8217;m not sure what could be localized but even this might be the case.) If a text file reader with floating point number syntax (like in C) is implemented you may not forget to adjust the locale to <code>C<\/code> before using <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.cppreference.com\/w\/c\/string\/byte\/strtof\"><code>strtod()<\/code><\/a> (using <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.cppreference.com\/w\/c\/locale\/setlocale\"><code>setlocale()<\/code><\/a>). (Being a German I&#8217;m sensitive to this topic, as in the German locale, the meaning of &#8216;.&#8217; and &#8216;,&#8217; are just vice versa like in English.)<\/p>\n<pre><code>{ const char *localeOld = setlocale(LC_ALL, \"C\");\n  value = strtod(text);\n  setlocale(LC_ALL, localeOld);\n}\n<\/code><\/pre>\n<p>Another fact is, that consideration of locale (even if adjusted to C) seems to be somehow expensive. Some years ago, we implemented an own floating point reader as replacement of <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.cppreference.com\/w\/c\/string\/byte\/strtof\"><code>strtod()<\/code><\/a> which provided a speed-up of 60 &#8230; 100 in a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.khronos.org\/collada\/\">COLLADA<\/a> reader (an XML file format where files often provide lots of floating point numbers).<\/p>\n<p><strong>Update:<\/strong><\/p>\n<p>Encouraged by the feedback of Paul Floyd, I got curious <em>how<\/em> faster <code>strToInt()<\/code> might be. Thus, I built a simple test suite and made some measurements:<\/p>\n<pre><code>#include &lt;assert.h&gt;\n#include &lt;ctype.h&gt;\n#include &lt;stdio.h&gt;\n#include &lt;stdlib.h&gt;\n#include &lt;time.h&gt;\n\nint strToInt(const char *text)\n{\n  int n = 0, sign = 1;\n  switch (*text) {\n    case '-': sign = -1;\n    case '+': ++text;\n  }\n  for (; isdigit(*text); ++text) n *= 10, n += *text - '0';\n  return n * sign;\n}\n\nint main(int argc, char **argv)\n{\n  int n = 10000000; \/* default number of measurements *\/\n  \/* read command line options *\/\n  if (argc &gt; 1) n = atoi(argv[1]);\n  if (n &lt;= 0) return 1; \/* ERROR *\/\n  \/* build samples *\/\n  assert(sizeof(int) &lt;= 8); \/* May be, I want to do it again 20 years ago. *\/\n  \/* 24 characters should be capable to hold any decimal for int\n   * (upto 64 bit)\n   *\/\n  char (*samples)[24] = malloc(n * 24 * sizeof(char));\n  if (!samples) {\n    printf(\"ERROR: Cannot allocate samples!\\n\"\n      \"(Out of memory.)\\n\");\n    return 1;\n  }\n  for (int i = 0; i &lt; n; ++i) sprintf(samples[i], \"%d\", i - (i &amp; 1) * n);\n  \/* assert correct results, ensure fair caching, pre-heat CPU *\/\n  int *retAToI = malloc(n * sizeof(int));\n  if (!retAToI) {\n    printf(\"ERROR: Cannot allocate result array for atoi()!\\n\"\n      \"(Out of memory.)\\n\");\n    return 1;\n  }\n  int *retStrToInt = malloc(n * sizeof(int));\n  if (!retStrToInt) {\n    printf(\"ERROR: Cannot allocate result array for strToInt()!\\n\"\n      \"(Out of memory.)\\n\");\n    return 1;\n  }\n  int nErrors = 0;\n  for (int i = 0; i &lt; n; ++i) {\n    retAToI[i] = atoi(samples[i]); retStrToInt[i] = strToInt(samples[i]);\n    if (retAToI[i] != retStrToInt[i]) {\n      printf(\"ERROR: atoi(\\\"%s\\\"): %d, strToInt(\\\"%s\\\"): %d!\\n\",\n        samples[i], retAToI[i], samples[i], retStrToInt[i]);\n      ++nErrors;\n    }\n  }\n  if (nErrors) {\n    printf(\"%d ERRORs found!\", nErrors);\n    return 2;\n  }\n  \/* do measurements *\/\n  enum { nTries = 10 };\n  time_t tTbl[nTries][2];\n  for (int i = 0; i &lt; nTries; ++i) {\n    printf(\"Measurement %d:\\n\", i + 1);\n    { time_t t0 = clock();\n      for (int i = 0; i &lt; n; ++i) retAToI[i] = atoi(samples[i]);\n      tTbl[i][0] = clock() - t0;\n    }\n    { time_t t0 = clock();\n      for (int i = 0; i &lt; n; ++i) retStrToInt[i] = strToInt(samples[i]);\n      tTbl[i][1] = clock() - t0;\n    }\n    \/* assert correct results (and prevent that measurement is optimized away) *\/\n    for (int i = 0; i &lt; n; ++i) if (retAToI[i] != retStrToInt[i]) return 3;\n  }\n  \/* report *\/\n  printf(\"Report:\\n\");\n  printf(\"%20s|%20s\\n\", \"atoi() \", \"strToInt() \");\n  printf(\"--------------------+--------------------\\n\");\n  double tAvg[2] = { 0.0, 0.0 }; const char *sep = \"|\\n\";\n  for (int i = 0; i &lt; nTries; ++i) {\n    for (int j = 0; j &lt; 2; ++j) {\n      double t = (double)tTbl[i][j] \/ CLOCKS_PER_SEC;\n      printf(\"%19.3f %c\", t, sep[j]);\n      tAvg[j] += t;\n    }\n  }\n  printf(\"--------------------+--------------------\\n\");\n  for (int j = 0; j &lt; 2; ++j) printf(\"%19.3f %c\", tAvg[j] \/ nTries, sep[j]);\n  \/* done *\/\n  return 0;\n}\n<\/code><\/pre>\n<p>I tried this on some platforms.<\/p>\n<p>VS2013 on Windows 10 (64 bit), Release mode:<\/p>\n<pre><code>Report:\n             atoi() |         strToInt()\n--------------------+--------------------\n              0.232 |              0.200\n              0.310 |              0.240\n              0.253 |              0.199\n              0.231 |              0.201\n              0.232 |              0.253\n              0.247 |              0.201\n              0.238 |              0.201\n              0.247 |              0.223\n              0.248 |              0.200\n              0.249 |              0.200\n--------------------+--------------------\n              0.249 |              0.212\n<\/code><\/pre>\n<p>gcc 5.4.0 on cygwin, Windows 10 (64 bit), <code>gcc -std=c11 -O2<\/code>:<\/p>\n<pre><code>Report:\n             atoi() |         strToInt() \n--------------------+--------------------\n              0.360 |              0.312 \n              0.391 |              0.250 \n              0.360 |              0.328 \n              0.391 |              0.312 \n              0.375 |              0.281 \n              0.359 |              0.282 \n              0.375 |              0.297 \n              0.391 |              0.250 \n              0.359 |              0.297 \n              0.406 |              0.281 \n--------------------+--------------------\n              0.377 |              0.289\n<\/code><\/pre>\n<p>Sample uploaded and executed on <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.tutorialspoint.com\/compile_c_online.php?PID=0Bw_CjBb95KQMZy1Zck50Rk1QUEk\"><strong>codingground<\/strong><\/a><br \/>\ngcc 4.8.5 on Linux 3.10.0-327.36.3.el7.x86_64, <code>gcc -std=c11 -O2<\/code>:<\/p>\n<pre><code>Report:\n             atoi() |         strToInt() \n--------------------+--------------------\n              1.080 |              0.750 \n              1.000 |              0.780 \n              0.980 |              0.770 \n              1.010 |              0.770 \n              1.000 |              0.770 \n              1.010 |              0.780 \n              1.010 |              0.780 \n              1.010 |              0.770 \n              1.020 |              0.780 \n              1.020 |              0.780 \n--------------------+--------------------\n              1.014 |              0.773 \n<\/code><\/pre>\n<p>Well, <code>strToInt()<\/code> is a <em>little bit<\/em> faster. (Without <code>-O2<\/code>, it was even slower than <code>atoi()<\/code> but the standard library was probably optimized too.)<\/p>\n<p>Note:<\/p>\n<p>As the time measurement involves assignment and loop operations, this provides a qualitative statement about which one is faster. It doesn&#8217;t provide a quantitative factor. (To get one, the measurement would become much more complicated.)<\/p>\n<p>Due to the simplicity of <code>atoi()<\/code>, the application had to use it <em>very<\/em> often until it becomes even worth to consider the development effort&#8230;<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">4<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Is atoi multithread safe? [closed] <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Its quite easy to implement a replacement for atoi(): int strToInt(const char *text) { int n = 0, sign = 1; switch (*text) { case &#8216;-&#8216;: sign = -1; case &#8216;+&#8217;: ++text; } for (; isdigit(*text); ++text) n *= 10, n += *text &#8211; &#8216;0&#8217;; return n * sign; } (Demonstration on ideone) It &#8230; <a title=\"[Solved] Is atoi multithread safe? [closed]\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/\" aria-label=\"More on [Solved] Is atoi multithread safe? [closed]\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[2479,324,884,606],"class_list":["post-8765","post","type-post","status-publish","format-standard","hentry","category-solved","tag-atoi","tag-c","tag-multithreading","tag-runtime-error"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Is atoi multithread safe? [closed] - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Is atoi multithread safe? [closed] - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Its quite easy to implement a replacement for atoi(): int strToInt(const char *text) { int n = 0, sign = 1; switch (*text) { case &#039;-&#039;: sign = -1; case &#039;+&#039;: ++text; } for (; isdigit(*text); ++text) n *= 10, n += *text - &#039;0&#039;; return n * sign; } (Demonstration on ideone) It ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-15T04:50:02+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Is atoi multithread safe? [closed]\",\"datePublished\":\"2022-09-15T04:50:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/\"},\"wordCount\":411,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"atoi\",\"c++\",\"multithreading\",\"runtime-error\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/\",\"name\":\"[Solved] Is atoi multithread safe? [closed] - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-09-15T04:50:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Is atoi multithread safe? [closed]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Is atoi multithread safe? [closed] - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Is atoi multithread safe? [closed] - JassWeb","og_description":"[ad_1] Its quite easy to implement a replacement for atoi(): int strToInt(const char *text) { int n = 0, sign = 1; switch (*text) { case '-': sign = -1; case '+': ++text; } for (; isdigit(*text); ++text) n *= 10, n += *text - '0'; return n * sign; } (Demonstration on ideone) It ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/","og_site_name":"JassWeb","article_published_time":"2022-09-15T04:50:02+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Is atoi multithread safe? [closed]","datePublished":"2022-09-15T04:50:02+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/"},"wordCount":411,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["atoi","c++","multithreading","runtime-error"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/","url":"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/","name":"[Solved] Is atoi multithread safe? [closed] - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-09-15T04:50:02+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-is-atoi-multithread-safe-closed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Is atoi multithread safe? [closed]"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/8765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=8765"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/8765\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=8765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=8765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=8765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}