{"id":5597,"date":"2022-08-29T16:21:59","date_gmt":"2022-08-29T10:51:59","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/"},"modified":"2022-08-29T16:21:59","modified_gmt":"2022-08-29T10:51:59","slug":"solved-nsuserdefault-update-formula","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/","title":{"rendered":"[Solved] NSUserDefault Update Formula"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-13437452\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"13437452\" data-parentid=\"13436817\" data-score=\"1\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" 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>I tried your code with some changes. Here are my <code>.h<\/code> file and <code>.m<\/code> files. Try this.  Now also I didn&#8217;t understand what your trying to find out, but this code gives me the values not a <code>nan<\/code>. While you writing code, don&#8217;t forget to start your variable name in small letter that is a standard way. And also use <code>self<\/code> if you set a variable as property. <\/p>\n<p><code>ViewController.h<\/code><\/p>\n<pre><code>#import &lt;UIKit\/UIKit.h&gt;\n#import &lt;MapKit\/MapKit.h&gt;\n#import &lt;CoreLocation\/CoreLocation.h&gt;\n\n@interface ViewController : UIViewController\n&lt;UITextFieldDelegate,CLLocationManagerDelegate&gt;{\n    IBOutlet MKMapView *mapView;\n    IBOutlet UITextField *textGas;\n    IBOutlet UITextField *textMoney;\n    IBOutlet UITextField *textTotal;\n    IBOutlet UITextField *textDistance;\n}\n\n@property (nonatomic, retain) CLLocationManager *locationManager;\n@end\n<\/code><\/pre>\n<p><code>ViewController.m<\/code><\/p>\n<pre><code> #import \"ViewController.h\"\n\n\n\n    @interface ViewController ()\n    {\n        double totalDistance;\n        float gas,money;\n    }\n    @end\n\n    @implementation ViewController\n    @synthesize locationManager;\n\n\n    - (void)viewDidLoad\n    {\n        [super viewDidLoad];\n        self.locationManager = [[CLLocationManager alloc] init];\n        self.locationManager.delegate = self;\n        self.locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters;\n        [self.locationManager startUpdatingLocation];\n\n\/\/set default value for Gas\n        if (![[NSUserDefaults standardUserDefaults] objectForKey:@\"Gas\"]) {\n            [[NSUserDefaults standardUserDefaults] setObject:@\"1.0\" forKey:@\"Gas\"];\n            [[NSUserDefaults standardUserDefaults] synchronize];\n        }\n\n\/\/set default value for Money\n        if (![[NSUserDefaults standardUserDefaults] objectForKey:@\"Money\"]) {\n            [[NSUserDefaults standardUserDefaults] setObject:@\"1.0\" forKey:@\"Money\"];\n            [[NSUserDefaults standardUserDefaults] synchronize];\n        }\n\n        gas = [[[NSUserDefaults standardUserDefaults] objectForKey:@\"Gas\"] floatValue];\n        money =  [[[NSUserDefaults standardUserDefaults] objectForKey:@\"Money\"] floatValue];\n\n        textGas.text = [NSString stringWithFormat:@\"%.1f\",gas];\n        textMoney.text = [NSString stringWithFormat:@\"%.1f\",money];\n\n        \/\/ Do any additional setup after loading the view, typically from a nib.\n    }\n\n    -(void)viewDidAppear:(BOOL)animated\n    {\n        [super viewDidAppear:animated];\n        if ([[NSUserDefaults standardUserDefaults] objectForKey:@\"Gas\"])\n            textGas.text = [[NSUserDefaults standardUserDefaults] objectForKey:@\"Gas\"];\n        else\n            textGas.text = @\"0\";\/\/set default value\n\n        if ([[NSUserDefaults standardUserDefaults] objectForKey:@\"Money\"])\n            textMoney.text = [[NSUserDefaults standardUserDefaults] objectForKey:@\"Money\"];\n        else\n            textMoney.text = @\"0.01\";\/\/set default value\n\n\n\n    }\n\n    -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event\n    {\n        [textMoney resignFirstResponder];\n        [textGas resignFirstResponder];\n    }\n\n    - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex\n    {\n        if (buttonIndex == 1)\n        {\n            exit(0);\n        }\n        if (buttonIndex == 0) {\n            [self.locationManager stopUpdatingLocation];\n            mapView.showsUserLocation = NO;\n        }\n\n    }\n    #pragma mark - UITextFieldDelegate\n    -(void)textFieldDidEndEditing:(UITextField *)textField\n    {\n\n        if ([textField.text intValue] == 0) {\n            textGas.text = [NSString stringWithFormat:@\"%.1f\",gas];\n            textMoney.text = [NSString stringWithFormat:@\"%.1f\",money];\n            UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@\"\"\n                                                            message:@\"Value cann't be zero.\"\n                                                           delegate:self\n                                                  cancelButtonTitle:@\"OK\"\n                                                  otherButtonTitles:nil];\n            [alert show];\n            alert = nil;\n            return;\n        }\n\n        if (![textField.text length]) {\n            textGas.text = [NSString stringWithFormat:@\"%.1f\",gas];\n            textMoney.text = [NSString stringWithFormat:@\"%.1f\",money];\n            UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@\"\"\n                                                            message:@\"Value cann't be empty.\"\n                                                           delegate:self\n                                                  cancelButtonTitle:@\"OK\"\n                                                  otherButtonTitles:nil];\n            [alert show];\n            alert = nil;\n            return;\n        }\n\n        NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];\n        if (textField == textGas) {\n            [defaults setObject:textGas.text forKey:@\"Gas\"];\n            gas = [textGas.text floatValue];\n        }\n        else if (textField == textMoney)\n        {\n            [defaults setObject:textMoney.text forKey:@\"Money\"];\n            money = [textMoney.text floatValue];\n        }\n        [defaults synchronize];\n    }\n\n    - (BOOL) textFieldShouldReturn:(UITextField *)textField\n    {\n        [textField resignFirstResponder];\n        return YES;\n    }\n\n    #pragma mark -\n    #pragma mark CLLocationManagerDelegate Methods\n\n    - (void)locationManager:(CLLocationManager *)manager\n        didUpdateToLocation:(CLLocation *)newLocation\n               fromLocation:(CLLocation *)oldLocation {\n        {\n            \/\/ Zoom to the current user location.\n            MKCoordinateRegion userLocation = MKCoordinateRegionMakeWithDistance(newLocation.coordinate, 1200.0, 1200.0);\n            [mapView setRegion:userLocation animated:NO];\n            mapView.showsUserLocation = YES;\n        }\n\n\n\n        if (!oldLocation)\n            totalDistance = 0.0;\n        else\n            totalDistance += [newLocation distanceFromLocation:oldLocation];\n\n\n        double distance = totalDistance*0.00062137119;\n        textTotal.text = [[ NSString alloc] initWithFormat:@\"$%.2f\", distance\/gas*money];\n        textDistance.text = [NSString stringWithFormat:@\"%.2f Miles\", distance];\n\n    }\n\n\n    - (void)didReceiveMemoryWarning\n    {\n        [super didReceiveMemoryWarning];\n        \/\/ Dispose of any resources that can be recreated.\n    }\n    @end\n<\/code><\/pre>\n<p>And the result in Simulator is<br \/>\n<img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-NSUserDefault-Update-Formula.png\" alt=\"result in Simulator\"><\/p>\n<p>Don\u2019t forget to connect <code>delegates<\/code> and <code>IBOutlet<\/code> from interface builder.<img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/1661770319_757_Solved-NSUserDefault-Update-Formula.png\" alt=\"this is how you can check the delegate connection\"><\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">21<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved NSUserDefault Update Formula <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] I tried your code with some changes. Here are my .h file and .m files. Try this. Now also I didn&#8217;t understand what your trying to find out, but this code gives me the values not a nan. While you writing code, don&#8217;t forget to start your variable name in small letter that is &#8230; <a title=\"[Solved] NSUserDefault Update Formula\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/\" aria-label=\"More on [Solved] NSUserDefault Update Formula\">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":[530,471,1446,1086,830],"class_list":["post-5597","post","type-post","status-publish","format-standard","hentry","category-solved","tag-formula","tag-ios","tag-ipad","tag-nsuserdefaults","tag-xcode"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] NSUserDefault Update Formula - 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-nsuserdefault-update-formula\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] NSUserDefault Update Formula - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] I tried your code with some changes. Here are my .h file and .m files. Try this. Now also I didn&#8217;t understand what your trying to find out, but this code gives me the values not a nan. While you writing code, don&#8217;t forget to start your variable name in small letter that is ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-29T10:51:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-NSUserDefault-Update-Formula.png\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] NSUserDefault Update Formula\",\"datePublished\":\"2022-08-29T10:51:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/\"},\"wordCount\":91,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-NSUserDefault-Update-Formula.png\",\"keywords\":[\"formula\",\"ios\",\"ipad\",\"nsuserdefaults\",\"xcode\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/\",\"name\":\"[Solved] NSUserDefault Update Formula - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-NSUserDefault-Update-Formula.png\",\"datePublished\":\"2022-08-29T10:51:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#primaryimage\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-NSUserDefault-Update-Formula.png\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-NSUserDefault-Update-Formula.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] NSUserDefault Update Formula\"}]},{\"@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=1776403586\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] NSUserDefault Update Formula - 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-nsuserdefault-update-formula\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] NSUserDefault Update Formula - JassWeb","og_description":"[ad_1] I tried your code with some changes. Here are my .h file and .m files. Try this. Now also I didn&#8217;t understand what your trying to find out, but this code gives me the values not a nan. While you writing code, don&#8217;t forget to start your variable name in small letter that is ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/","og_site_name":"JassWeb","article_published_time":"2022-08-29T10:51:59+00:00","og_image":[{"url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-NSUserDefault-Update-Formula.png","type":"","width":"","height":""}],"author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] NSUserDefault Update Formula","datePublished":"2022-08-29T10:51:59+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/"},"wordCount":91,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-NSUserDefault-Update-Formula.png","keywords":["formula","ios","ipad","nsuserdefaults","xcode"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/","url":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/","name":"[Solved] NSUserDefault Update Formula - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#primaryimage"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-NSUserDefault-Update-Formula.png","datePublished":"2022-08-29T10:51:59+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#primaryimage","url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-NSUserDefault-Update-Formula.png","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-NSUserDefault-Update-Formula.png"},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-nsuserdefault-update-formula\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] NSUserDefault Update Formula"}]},{"@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=1776403586","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","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\/5597","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=5597"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/5597\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=5597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=5597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=5597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}