{"id":156,"date":"2026-06-03T06:32:46","date_gmt":"2026-06-03T06:32:46","guid":{"rendered":"https:\/\/gigz.pk\/javaapp\/?post_type=lesson&#038;p=156"},"modified":"2026-06-06T11:49:19","modified_gmt":"2026-06-06T11:49:19","slug":"shared-preferences","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/javaapp\/?lesson=shared-preferences","title":{"rendered":"Shared Preferences"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Shared Preferences is a simple and powerful storage system in Android used to save small amounts of data in key-value format. It is commonly used to store user settings, login states, app preferences, and simple configuration data that must persist even after the app is closed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Almost every Android application uses Shared Preferences for lightweight local storage.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What are Shared Preferences?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shared Preferences is a persistent storage mechanism in Android that allows you to save primitive data types like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>String<\/li>\n\n\n\n<li>Integer<\/li>\n\n\n\n<li>Boolean<\/li>\n\n\n\n<li>Float<\/li>\n\n\n\n<li>Long<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Data is stored in XML files inside the app\u2019s private storage.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It works in key-value pairs, where each value is stored with a unique key.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Use Shared Preferences?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shared Preferences is important because it:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Stores small data locally<\/li>\n\n\n\n<li>Keeps data after app restart<\/li>\n\n\n\n<li>Saves user settings<\/li>\n\n\n\n<li>Maintains login sessions<\/li>\n\n\n\n<li>Improves user experience<\/li>\n\n\n\n<li>Is easy to implement<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">It is not suitable for large or complex data, but it is perfect for simple app preferences.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where is Shared Preferences Used?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shared Preferences is commonly used in:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Login and logout systems<\/li>\n\n\n\n<li>Dark mode settings<\/li>\n\n\n\n<li>Language selection<\/li>\n\n\n\n<li>User onboarding screens<\/li>\n\n\n\n<li>Remember me functionality<\/li>\n\n\n\n<li>App theme settings<\/li>\n\n\n\n<li>User session management<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Almost every modern Android app uses it in some form.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How Shared Preferences Works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shared Preferences works in three main steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a SharedPreferences object<\/li>\n\n\n\n<li>Store data using an editor<\/li>\n\n\n\n<li>Retrieve data using keys<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Each value is saved using a unique key that can be accessed later.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating Shared Preferences<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To create Shared Preferences:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SharedPreferences sharedPreferences =\n        getSharedPreferences(\n                \"MyAppPrefs\",\n                MODE_PRIVATE);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\"MyAppPrefs\"<\/code> is the file name<\/li>\n\n\n\n<li><code>MODE_PRIVATE<\/code> means only this app can access it<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Saving Data in Shared Preferences<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To store data, use the editor:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>SharedPreferences sharedPreferences =\n        getSharedPreferences(\n                \"MyAppPrefs\",\n                MODE_PRIVATE);\n\nSharedPreferences.Editor editor =\n        sharedPreferences.edit();\n\neditor.putString(\n        \"username\",\n        \"Ali\");\n\neditor.putInt(\n        \"age\",\n        22);\n\neditor.putBoolean(\n        \"isLoggedIn\",\n        true);\n\neditor.apply();\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Key Methods for Saving Data<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shared Preferences supports different data types:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>putString()\nputInt()\nputBoolean()\nputFloat()\nputLong()\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Each value is stored with a key.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Retrieving Data from Shared Preferences<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To read saved data:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SharedPreferences sharedPreferences =\n        getSharedPreferences(\n                \"MyAppPrefs\",\n                MODE_PRIVATE);\n\nString username =\n        sharedPreferences.getString(\n                \"username\",\n                \"default\");\n\nint age =\n        sharedPreferences.getInt(\n                \"age\",\n                0);\n\nboolean isLoggedIn =\n        sharedPreferences.getBoolean(\n                \"isLoggedIn\",\n                false);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the key does not exist, the default value is returned.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Example: Login System Using Shared Preferences<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Saving Login State<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>SharedPreferences sharedPreferences =\n        getSharedPreferences(\n                \"LoginPrefs\",\n                MODE_PRIVATE);\n\nSharedPreferences.Editor editor =\n        sharedPreferences.edit();\n\neditor.putBoolean(\n        \"loggedIn\",\n        true);\n\neditor.putString(\n        \"username\",\n        \"Ali\");\n\neditor.apply();\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Checking Login State<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>SharedPreferences sharedPreferences =\n        getSharedPreferences(\n                \"LoginPrefs\",\n                MODE_PRIVATE);\n\nboolean loggedIn =\n        sharedPreferences.getBoolean(\n                \"loggedIn\",\n                false);\n\nif(loggedIn) {\n\n    System.out.println(\n            \"User is logged in\");\n\n} else {\n\n    System.out.println(\n            \"User is not logged in\");\n\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is widely used in authentication systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Updating Data in Shared Preferences<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To update a value, simply overwrite the key:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>editor.putString(\n        \"username\",\n        \"Ahmed\");\n\neditor.apply();\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The old value is replaced automatically.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Removing Data<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To remove a specific value:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>editor.remove(\"username\");\neditor.apply();\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To clear all data:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>editor.clear();\neditor.apply();\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Modes in Shared Preferences<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Common modes include:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MODE_PRIVATE<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Only the app can access the data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MODE_WORLD_READABLE (deprecated)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Previously allowed other apps to read data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MODE_WORLD_WRITEABLE (deprecated)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Previously allowed other apps to write data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Modern Android uses MODE_PRIVATE only.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Example: Remember Me Feature<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Saving User Choice<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>editor.putBoolean(\n        \"rememberMe\",\n        true);\n\neditor.apply();\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Checking Value<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>boolean rememberMe =\n        sharedPreferences.getBoolean(\n                \"rememberMe\",\n                false);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is commonly used in login screens.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Example: Dark Mode Setting<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Saving Theme Preference<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>editor.putBoolean(\n        \"darkMode\",\n        true);\n\neditor.apply();\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Retrieving Theme<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>boolean darkMode =\n        sharedPreferences.getBoolean(\n                \"darkMode\",\n                false);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Apps use this to maintain UI themes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Shared Preferences in Activity Lifecycle<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shared Preferences data remains available even after:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>App restart<\/li>\n\n\n\n<li>Activity restart<\/li>\n\n\n\n<li>Device reboot<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This makes it ideal for persistent settings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Advantages of Shared Preferences<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shared Preferences offers several benefits:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Easy to use<\/li>\n\n\n\n<li>Lightweight storage<\/li>\n\n\n\n<li>Fast access<\/li>\n\n\n\n<li>Persistent data<\/li>\n\n\n\n<li>No database required<\/li>\n\n\n\n<li>Ideal for small data<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">It is one of the simplest storage solutions in Android.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Limitations of Shared Preferences<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shared Preferences is not suitable for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Large data storage<\/li>\n\n\n\n<li>Complex structured data<\/li>\n\n\n\n<li>Media files<\/li>\n\n\n\n<li>Relational data<\/li>\n\n\n\n<li>High-performance databases<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For large data, use Room Database or Firebase.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Real-World Applications<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shared Preferences is used in:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Login systems<\/li>\n\n\n\n<li>App settings storage<\/li>\n\n\n\n<li>User preferences<\/li>\n\n\n\n<li>Theme management<\/li>\n\n\n\n<li>Language selection<\/li>\n\n\n\n<li>Onboarding flow control<\/li>\n\n\n\n<li>Session management<\/li>\n\n\n\n<li>Notification settings<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Almost every Android app uses it behind the scenes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Beginner Mistakes<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Forgetting apply() or commit()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Incorrect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>editor.putString(\"name\", \"Ali\");\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Correct:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>editor.putString(\"name\", \"Ali\");\neditor.apply();\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Using Wrong Keys<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Keys must match exactly when saving and retrieving data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Overusing Shared Preferences<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Do not store large or complex data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Not Providing Default Values<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Always provide fallback values:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>getString(\"key\", \"default\")\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Best Practices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When using Shared Preferences:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use meaningful keys<\/li>\n\n\n\n<li>Group related preferences<\/li>\n\n\n\n<li>Avoid storing sensitive data<\/li>\n\n\n\n<li>Use constants for keys<\/li>\n\n\n\n<li>Keep data small and simple<\/li>\n\n\n\n<li>Clear unused preferences<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These practices improve maintainability and security.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Importance of Shared Preferences<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shared Preferences is important because it:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Stores user settings permanently<\/li>\n\n\n\n<li>Maintains app state<\/li>\n\n\n\n<li>Improves user experience<\/li>\n\n\n\n<li>Supports authentication systems<\/li>\n\n\n\n<li>Enables personalization<\/li>\n\n\n\n<li>Simplifies local storage<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">It is a fundamental tool in Android development.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Shared Preferences is a lightweight storage system used in Android to save small pieces of data in key-value format. It is ideal for storing user preferences, login states, and simple configuration settings that must persist across app sessions. With its simplicity and efficiency, Shared Preferences plays a key role in building modern Android applications that remember user data and provide a smooth, personalized experience.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/javaapp\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Java for Android Apps > Data Storage > Shared Preferences<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><\/div>\n","protected":false},"menu_order":51,"template":"","class_list":["post-156","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Shared Preferences - Learn Java used for Apps with GiGz.PK<\/title>\n<meta name=\"description\" content=\"Learn Android Shared Preferences \u2014 how to save, retrieve, update, and delete key-value data with login and settings examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Shared Preferences - Learn Java used for Apps with GiGz.PK\" \/>\n<meta property=\"og:description\" content=\"Learn Android Shared Preferences \u2014 how to save, retrieve, update, and delete key-value data with login and settings examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:site_name\" content=\"Learn Java used for Apps with GiGz.PK\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-06T11:49:19+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/?lesson=shared-preferences\",\"url\":\"https:\\\/\\\/gigz.pk\\\/\",\"name\":\"Shared Preferences - Learn Java used for Apps with GiGz.PK\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/#website\"},\"datePublished\":\"2026-06-03T06:32:46+00:00\",\"dateModified\":\"2026-06-06T11:49:19+00:00\",\"description\":\"Learn Android Shared Preferences \u2014 how to save, retrieve, update, and delete key-value data with login and settings examples.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/javaapp\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java for Android Apps > Data Storage > Shared Preferences\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/\",\"name\":\"Learn Java used for Apps with GiGz.PK\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/javaapp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Shared Preferences - Learn Java used for Apps with GiGz.PK","description":"Learn Android Shared Preferences \u2014 how to save, retrieve, update, and delete key-value data with login and settings examples.","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:\/\/gigz.pk\/","og_locale":"en_US","og_type":"article","og_title":"Shared Preferences - Learn Java used for Apps with GiGz.PK","og_description":"Learn Android Shared Preferences \u2014 how to save, retrieve, update, and delete key-value data with login and settings examples.","og_url":"https:\/\/gigz.pk\/","og_site_name":"Learn Java used for Apps with GiGz.PK","article_modified_time":"2026-06-06T11:49:19+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/javaapp\/?lesson=shared-preferences","url":"https:\/\/gigz.pk\/","name":"Shared Preferences - Learn Java used for Apps with GiGz.PK","isPartOf":{"@id":"https:\/\/gigz.pk\/javaapp\/#website"},"datePublished":"2026-06-03T06:32:46+00:00","dateModified":"2026-06-06T11:49:19+00:00","description":"Learn Android Shared Preferences \u2014 how to save, retrieve, update, and delete key-value data with login and settings examples.","breadcrumb":{"@id":"https:\/\/gigz.pk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/javaapp"},{"@type":"ListItem","position":2,"name":"Java for Android Apps > Data Storage > Shared Preferences"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/javaapp\/#website","url":"https:\/\/gigz.pk\/javaapp\/","name":"Learn Java used for Apps with GiGz.PK","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/javaapp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/lesson\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/javaapp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}