

{"id":118608,"date":"2023-10-04T19:00:51","date_gmt":"2023-10-04T13:30:51","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=118608"},"modified":"2023-10-04T19:07:22","modified_gmt":"2023-10-04T13:37:22","slug":"swift-data-types","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/swift-data-types\/","title":{"rendered":"Swift Data Types"},"content":{"rendered":"<p>In Swift, once we declare a constant or a variable, we cannot change its type later. This is why it is a statically typed language. It determines how the data is stored and manipulated based on its type. It is important to understand data types to implement them efficiently. We&#8217;ll learn about different data types supported in Swift in this article with the help of relevant examples.<\/p>\n<p><strong>Some of the built-in data types in Swift are as follows:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Data Type<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<td><b>Example<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Int<\/span><\/td>\n<td><span style=\"font-weight: 400\">Integer Number<\/span><\/td>\n<td><span style=\"font-weight: 400\">20, -40<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Float<\/span><\/td>\n<td><span style=\"font-weight: 400\">32-bit Floating Point Number<\/span><\/td>\n<td><span style=\"font-weight: 400\">35.6<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Double<\/span><\/td>\n<td><span style=\"font-weight: 400\">64-bit Floating Point Number<\/span><\/td>\n<td><span style=\"font-weight: 400\">3.141592653589793\u00a0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Bool<\/span><\/td>\n<td><span style=\"font-weight: 400\">Either true\/false<\/span><\/td>\n<td><span style=\"font-weight: 400\">true, false<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Character<\/span><\/td>\n<td><span style=\"font-weight: 400\">16-bit Unicode Character<\/span><\/td>\n<td><span style=\"font-weight: 400\">&#8220;D&#8221;, &#8220;f&#8221;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">String<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sequence of Characters<\/span><\/td>\n<td><span style=\"font-weight: 400\">&#8220;DataFlair&#8221;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>We&#8217;ll learn about different data types supported in Swift in this article with the help of relevant examples.<\/p>\n<h3>Data Types Sizes<\/h3>\n<p>The size of a data type determines the size of data a variable or a constant can store. We measure the size in bits. It can store a maximum value of 2 bits.<\/p>\n<p>For example, there is a data type of 2-bit size. The maximum number of values it can store is 22= 4.<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Value<\/b><\/td>\n<td><b>Binary Representation<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">0<\/span><\/td>\n<td><span style=\"font-weight: 400\">00<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">1<\/span><\/td>\n<td><span style=\"font-weight: 400\">01<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">2<\/span><\/td>\n<td><span style=\"font-weight: 400\">10<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">3<\/span><\/td>\n<td><span style=\"font-weight: 400\">11<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>A data type of n-bit size can store a maximum of 2n bits.<\/p>\n<h3>Basic Data Types<\/h3>\n<p>A basic data type is also known as a primitive data type. It refers to a building block for representing values. These are directly supported by the language.<\/p>\n<h4>Integers<\/h4>\n<p>Integers represent whole numbers without any decimal points. We have two main types of integers in Swift: Int and UInt.<\/p>\n<p>Int can have negative and positive values.<\/p>\n<p>UInt is an unsigned integer; It holds non-negative values only.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">var temperature: Int = -40 \t\/\/ holds positive and negative integers.\r\nvar age: UInt = 22\t\t\/\/ holds only non-negative integers.\r\n<\/pre>\n<p>The below table represents the integer variable type, the amount of memory it consumes, and its range.<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Type<\/b><\/td>\n<td><b>Bit width (in bytes)<\/b><\/td>\n<td><b>Range<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Int8<\/span><\/td>\n<td><span style=\"font-weight: 400\">1<\/span><\/td>\n<td><span style=\"font-weight: 400\">[-128, 127]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Int32<\/span><\/td>\n<td><span style=\"font-weight: 400\">4<\/span><\/td>\n<td><span style=\"font-weight: 400\">[-2147483648, 2147483647]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Int64<\/span><\/td>\n<td><span style=\"font-weight: 400\">8<\/span><\/td>\n<td><span style=\"font-weight: 400\">[-9223372036854775808,\u00a0 9223372036854775807]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">UInt8<\/span><\/td>\n<td><span style=\"font-weight: 400\">1<\/span><\/td>\n<td><span style=\"font-weight: 400\">[0, 255]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">UInt32<\/span><\/td>\n<td><span style=\"font-weight: 400\">4<\/span><\/td>\n<td><span style=\"font-weight: 400\">[0, 4294967296]<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">UInt64<\/span><\/td>\n<td><span style=\"font-weight: 400\">8<\/span><\/td>\n<td><span style=\"font-weight: 400\">[0, 18446744073709551616]<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Floating Point Numbers<\/h4>\n<p>Floating point numbers represent numbers with fractional components. <strong>These are of two types:<\/strong> Float and Double.<\/p>\n<p>Float is a 32-bit floating point number. Its precision can be 6 decimal digits.<\/p>\n<p>Double is a 64-bit floating point number. Its precision can be at least 15 decimal digits.<\/p>\n<p>We use Double when precision is crucial. We use Float when memory efficiency is essential.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">var pi: Double = 3.141592653589793 \r\nvar temperature: Float = 25.8\r\n<\/pre>\n<p>The below table represents the type, the amount of memory it consumes, and its range.<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Type<\/b><\/td>\n<td><b>Bit width (in bytes)<\/b><\/td>\n<td><b>Range<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Float<\/span><\/td>\n<td><span style=\"font-weight: 400\">4<\/span><\/td>\n<td><span style=\"font-weight: 400\">[1.2E-38, 3.4E+38] (~6 digits)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Double<\/span><\/td>\n<td><span style=\"font-weight: 400\">8<\/span><\/td>\n<td><span style=\"font-weight: 400\">[2.3E-308, 1.7E+308] (~15 digits)<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Booleans<\/h4>\n<p>Booleans represent binary states in our programs. <strong>It can contain two values:<\/strong> true and false.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">var isWeekend: Bool = false\r\nvar isFun: Bool = true\r\n<\/pre>\n<h4>Character<\/h4>\n<p>Characters are individual Unicode values, which are numerical representations of individual characters. It handles single characters in Swift. It represents individual textual elements. The individual characters might be letters, digits, punctuation marks, symbols, or whitespace.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">var initialCharacter: Character = \"D\"\r\n<\/pre>\n<h4>String<\/h4>\n<p>A sequence of characters is a string. It stores information or data in textual format. Swift provides a powerful and flexible String type. It can support Unicode and various string manipulation functions.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">var example: String = \"DataFlair\"\r\n<\/pre>\n<h3>Collection Data Types<\/h3>\n<p>Collection data types store multiple elements of the same or different data types together. It stores these groups of values in a well-structured way.<\/p>\n<h4>Arrays<\/h4>\n<p>Arrays are ordered collections of elements. It stores elements of the same data type. In Swift, the index of arrays starts from 0, so they are zero-indexed.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">var arrayExample: [String] = [\"DataFlair\", \"Swift\", \"Data Types\", \"Array\"]\r\n<\/pre>\n<h4>Dictionaries<\/h4>\n<p>Dictionaries are unordered collections. It contains a key linked with a value. It has key-value pairs in it. In a dictionary, each key is unique. The values in it can be of any data type.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">var dictionaryExample: [String: Int] = [\"DataFlair\": 1, \"Swift\": 5]\r\n<\/pre>\n<h4>Sets<\/h4>\n<p>Sets are unordered collections. Each element in it is unique. These are useful when we want to ensure that each appears only once.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">var setExample: Set&lt;String&gt; = [\"DataFlair\", \"Swift\", \"Data Types\", \"Set\"]\r\n<\/pre>\n<h3>Advanced-Data Types<\/h3>\n<p>Advanced Data Types are composed of multiple basic or collection data types. They are complex data structures.<\/p>\n<h4>Tuples<\/h4>\n<p>A tuple is a collection of two or more values clubbed together into a single compound value. They can be of different data types. Tuples can be useful when we have to combine and pass around parts of data as a single unit.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">var tupleExample: (String, String) = (\"DataFlair\", \"Tuples\")\r\n<\/pre>\n<h4>Optionals<\/h4>\n<p>Optionals are a special data type in Swift. They are used when a variable or constant might have a value or might be nil. We define an optional by appending a question mark (?) in the type declaration.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">var optionalExample: String? = \"DataFlair\"\r\n<\/pre>\n<h4>Enums<\/h4>\n<p>Enums are also known as enumerations. It is a custom data type. It makes a group of related values as a single data type. It provides type safety for various cases or states.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">enum Season{\r\n    case summer\r\n    case winter\r\n    case spring\r\n    case autumn\r\n}\r\nlet season: Season = .spring\r\nswitch season{\r\ncase .summer:\r\n    print(\"It's summer\")\r\ncase .winter:\r\n    print(\"It's winter\")\r\ncase .spring:\r\n    print(\"It's spring\")\r\ncase .autumn:\r\n    print(\"It's autumn\")\r\n}\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>It&#8217;s spring<\/p>\n<h3>Type Inference<\/h3>\n<p>Swift has one powerful capability, which is type inference. It means the compiler can automatically deduce the data type of a variable based on the context.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">var intExample = 2023 \t\t      \/\/ infers it as an Int\r\nvar stringExample = \"DataFlair\" \t\/\/ infers it as a String<\/pre>\n<h3>Conclusion<\/h3>\n<p>To conclude, data types in Swift are essential. They determine how data is stored, manipulated, and organized. Basic data types handle simple values. Collection data types manage groups of data. Advanced data types model complex structures and behaviors. Swift&#8217;s type inference simplifies variable declarations.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Swift, once we declare a constant or a variable, we cannot change its type later. This is why it is a statically typed language. It determines how the data is stored and manipulated&#46;&#46;&#46;<\/p>\n","protected":false},"author":581,"featured_media":118610,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27789],"tags":[28284,21771,28283,28282],"class_list":["post-118608","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-swift-tutorials","tag-data-types","tag-swift","tag-swift-data-types","tag-swift-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Swift Data Types - DataFlair<\/title>\n<meta name=\"description\" content=\"In Swift, once we declare a constant or a variable, we cannot change its type later. It determines how the data is stored and manipulated based on its type.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/swift-data-types\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Swift Data Types - DataFlair\" \/>\n<meta property=\"og:description\" content=\"In Swift, once we declare a constant or a variable, we cannot change its type later. It determines how the data is stored and manipulated based on its type.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/swift-data-types\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-04T13:30:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-04T13:37:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/08\/swift-data-types.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Swift Data Types - DataFlair","description":"In Swift, once we declare a constant or a variable, we cannot change its type later. It determines how the data is stored and manipulated based on its type.","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:\/\/data-flair.training\/blogs\/swift-data-types\/","og_locale":"en_US","og_type":"article","og_title":"Swift Data Types - DataFlair","og_description":"In Swift, once we declare a constant or a variable, we cannot change its type later. It determines how the data is stored and manipulated based on its type.","og_url":"https:\/\/data-flair.training\/blogs\/swift-data-types\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2023-10-04T13:30:51+00:00","article_modified_time":"2023-10-04T13:37:22+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/08\/swift-data-types.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/swift-data-types\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/swift-data-types\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445"},"headline":"Swift Data Types","datePublished":"2023-10-04T13:30:51+00:00","dateModified":"2023-10-04T13:37:22+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/swift-data-types\/"},"wordCount":810,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/swift-data-types\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/08\/swift-data-types.webp","keywords":["data types","Swift","swift data types","swift tutorial"],"articleSection":["Swift Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/swift-data-types\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/swift-data-types\/","url":"https:\/\/data-flair.training\/blogs\/swift-data-types\/","name":"Swift Data Types - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/swift-data-types\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/swift-data-types\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/08\/swift-data-types.webp","datePublished":"2023-10-04T13:30:51+00:00","dateModified":"2023-10-04T13:37:22+00:00","description":"In Swift, once we declare a constant or a variable, we cannot change its type later. It determines how the data is stored and manipulated based on its type.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/swift-data-types\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/swift-data-types\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/swift-data-types\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/08\/swift-data-types.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/08\/swift-data-types.webp","width":1200,"height":628,"caption":"swift data types"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/swift-data-types\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Swift Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/swift-tutorials\/"},{"@type":"ListItem","position":3,"name":"Swift Data Types"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam6\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/118608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=118608"}],"version-history":[{"count":3,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/118608\/revisions"}],"predecessor-version":[{"id":120494,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/118608\/revisions\/120494"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/118610"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=118608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=118608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=118608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}