{"id":20834,"date":"2022-11-11T02:15:45","date_gmt":"2022-11-10T20:45:45","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/"},"modified":"2022-11-11T02:15:45","modified_gmt":"2022-11-10T20:45:45","slug":"solved-java-incrementing-every-character-in-a-string-by-a-large-amount","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/","title":{"rendered":"[Solved] Java incrementing every character in a string by a large amount?"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-23584432\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"23584432\" data-parentid=\"23576191\" 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>First I&#8217;m going to remove all of the I\/O (except for outputting the result), get rid of the decryption piece for brevity, and write <code>encrypt(String)<\/code> and <code>encrypt(char)<\/code> as <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/Pure_function\">pure functions<\/a>.<\/p>\n<pre><code>public class EncryptionMain {\n\n    public static void main(String args[]){\n        System.out.println(encrypt(\"Hello\"));\n    }\n\n    static String encrypt(String plaintext) {\n        StringBuilder ciphertext = new StringBuilder(plaintext);\n        for (int i = 0; i &lt; ciphertext.length(); i++) {\n            ciphertext.setCharAt(i, encrypt(ciphertext.charAt(i)));\n        }\n        return ciphertext.toString();\n    }\n\n    static char encrypt(char c) {\n        int switchInc = 1; \/\/ 0 = BACK 1 = FORWARD\n\n        for(int e = 0; e &lt; 1000; e++){\n            if (c == '!') {\n                switchInc = 1;\n            } else if (c == '~') {\n                switchInc = 0;\n            }\n\n            switch (switchInc) {\n                case 0: c--; break;\n                default: c++; break;\n            }\n        }\n        return c;\n    }\n}\n<\/code><\/pre>\n<p>And, whoops! &#8211; just by doing that, I accidentally fixed the bug. Here, I&#8217;ll add it back:<\/p>\n<pre><code>public class EncryptionMain {\n\n    public static void main(String args[]){\n        System.out.println(encrypt(\"Hello\"));\n    }\n\n    static String encrypt(String plaintext) {\n        StringBuilder ciphertext = new StringBuilder(plaintext);\n        for (int i = 0; i &lt; ciphertext.length(); i++) {\n            ciphertext.setCharAt(i, encrypt(ciphertext.charAt(i)));\n        }\n        return ciphertext.toString();\n    }\n\n    static int switchInc = 1; \/\/ 0 = BACK 1 = FORWARD\n\n    static char encrypt(char c) {\n\n        for(int e = 0; e &lt; 1000; e++){\n            if (c == '!') {\n                switchInc = 1;\n            } else if (c == '~') {\n                switchInc = 0;\n            }\n\n            switch (switchInc) {\n                case 0: c--; break;\n                default: c++; break;\n            }\n        }\n        return c;\n    }\n}\n<\/code><\/pre>\n<hr>\n<p>Edit &#8211; Here&#8217;s a working Caesar cipher I referred to in the comments below.<\/p>\n<p><em>main\/cipher\/Cipher.java<\/em><\/p>\n<pre><code>package cipher;\n\npublic final class Cipher {\n\n    public Cipher(Range range, int key) {\n        this.range = range;\n        this.key = key;\n    }\n\n    public final Range range;\n    public final int key;\n\n    public String encrypt(String plaintext) {\n        return cipher(plaintext, key);\n    }\n\n    public String decrypt(String ciphertext) {\n        return cipher(ciphertext, -key);\n    }\n\n    String cipher(String in, int n) {\n        StringBuilder out = new StringBuilder(in.length());\n        for (int i = 0; i &lt; in.length(); i++) {\n            out.append(range.shift(in.charAt(i), n));\n        }\n        return out.toString();\n    }\n}\n<\/code><\/pre>\n<p><em>main\/cipher\/Range.java<\/em><\/p>\n<pre><code>package cipher;\n\npublic final class Range {\n\n    public final char min;\n    public final char max;\n    public final int size;\n\n    public static Range inclusive(char min, char max) {\n        return new Range(min, max);\n    }\n\n    Range(char min, char max) {\n        this.min = min;\n        this.max = max;\n        size = max - min + 1;\n    }\n\n    \/** Shift c up by i places, wrapping around to the\n     * beginning of the range when it reaches the end. *\/\n    public char shift(char c, int i) {\n        return (char) (min + mod(c - min + i, size));\n    }\n\n    \/** x mod a *\/\n    static int mod(int x, int a) {\n        return ((x % a) + a) % a;\n    }\n}\n<\/code><\/pre>\n<p><em>test\/cipher\/CipherTest.java<\/em><\/p>\n<pre><code>package cipher;\n\nimport org.testng.annotations.Test;\n\nimport static org.testng.Assert.assertEquals;\n\npublic class CipherTest {\n\n    @Test\n    public void testZeroKey() throws Exception {\n        Cipher cipher = new Cipher(Range.inclusive('a', 'z'), 0);\n        assertEquals(cipher.encrypt(\"abcxyz\"), \"abcxyz\");\n        assertEquals(cipher.decrypt(\"abcxyz\"), \"abcxyz\");\n    }\n\n    @Test\n    public void testOneKey() throws Exception {\n        Cipher cipher = new Cipher(Range.inclusive('a', 'z'), 1);\n        assertEquals(cipher.encrypt(\"abcxyz\"), \"bcdyza\");\n        assertEquals(cipher.decrypt(\"bcdyza\"), \"abcxyz\");\n    }\n\n    @Test\n    public void testSizePlusOneKey() throws Exception {\n        Cipher cipher = new Cipher(Range.inclusive('a', 'z'), 27);\n        assertEquals(cipher.encrypt(\"abcxyz\"), \"bcdyza\");\n        assertEquals(cipher.decrypt(\"bcdyza\"), \"abcxyz\");\n    }\n}\n<\/code><\/pre>\n<p><em>test\/cipher\/RangeTest.java<\/em><\/p>\n<pre><code>package cipher;\n\nimport org.testng.Assert;\nimport org.testng.annotations.Test;\n\nimport static org.testng.Assert.assertEquals;\nimport static cipher.Range.mod;\n\npublic class RangeTest {\n\n    @Test\n    public void testSize() {\n        Assert.assertEquals(Range.inclusive('a', 'c').size, 3);\n    }\n\n    @Test\n    public void testMod() throws Exception {\n        assertEquals(mod(-2, 5), 3);\n        assertEquals(mod(-1, 5), 4);\n        assertEquals(mod(0, 5), 0);\n        assertEquals(mod(1, 5), 1);\n        assertEquals(mod(2, 5), 2);\n        assertEquals(mod(3, 5), 3);\n        assertEquals(mod(4, 5), 4);\n        assertEquals(mod(5, 5), 0);\n        assertEquals(mod(6, 5), 1);\n    }\n\n    @Test\n    public void testShift() throws Exception {\n        Range r = Range.inclusive('a', 'd');\n        Assert.assertEquals(r.shift('a', -2), 'c');\n        Assert.assertEquals(r.shift('a', -1), 'd');\n        Assert.assertEquals(r.shift('a', 0), 'a');\n        Assert.assertEquals(r.shift('a', 1), 'b');\n        Assert.assertEquals(r.shift('a', 2), 'c');\n        Assert.assertEquals(r.shift('a', 3), 'd');\n        Assert.assertEquals(r.shift('a', 4), 'a');\n        Assert.assertEquals(r.shift('a', 5), 'b');\n    }\n}\n<\/code><\/pre>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">17<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Java incrementing every character in a string by a large amount? <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] First I&#8217;m going to remove all of the I\/O (except for outputting the result), get rid of the decryption piece for brevity, and write encrypt(String) and encrypt(char) as pure functions. public class EncryptionMain { public static void main(String args[]){ System.out.println(encrypt(&#8220;Hello&#8221;)); } static String encrypt(String plaintext) { StringBuilder ciphertext = new StringBuilder(plaintext); for (int i &#8230; <a title=\"[Solved] Java incrementing every character in a string by a large amount?\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/\" aria-label=\"More on [Solved] Java incrementing every character in a string by a large amount?\">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":[323,391],"class_list":["post-20834","post","type-post","status-publish","format-standard","hentry","category-solved","tag-java","tag-loops"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Solved] Java incrementing every character in a string by a large amount? - 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-java-incrementing-every-character-in-a-string-by-a-large-amount\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Java incrementing every character in a string by a large amount? - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] First I&#8217;m going to remove all of the I\/O (except for outputting the result), get rid of the decryption piece for brevity, and write encrypt(String) and encrypt(char) as pure functions. public class EncryptionMain { public static void main(String args[]){ System.out.println(encrypt(&quot;Hello&quot;)); } static String encrypt(String plaintext) { StringBuilder ciphertext = new StringBuilder(plaintext); for (int i ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-10T20:45:45+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=\"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-java-incrementing-every-character-in-a-string-by-a-large-amount\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\\\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Java incrementing every character in a string by a large amount?\",\"datePublished\":\"2022-11-10T20:45:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\\\/\"},\"wordCount\":105,\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"keywords\":[\"java\",\"loops\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\\\/\",\"name\":\"[Solved] Java incrementing every character in a string by a large amount? - JassWeb\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\"},\"datePublished\":\"2022-11-10T20:45:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Java incrementing every character in a string by a large amount?\"}]},{\"@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\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\\\/\\\/jassweb.com\"],\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/author\\\/jaspritsinghghumangmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Java incrementing every character in a string by a large amount? - 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-java-incrementing-every-character-in-a-string-by-a-large-amount\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Java incrementing every character in a string by a large amount? - JassWeb","og_description":"[ad_1] First I&#8217;m going to remove all of the I\/O (except for outputting the result), get rid of the decryption piece for brevity, and write encrypt(String) and encrypt(char) as pure functions. public class EncryptionMain { public static void main(String args[]){ System.out.println(encrypt(\"Hello\")); } static String encrypt(String plaintext) { StringBuilder ciphertext = new StringBuilder(plaintext); for (int i ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/","og_site_name":"JassWeb","article_published_time":"2022-11-10T20:45:45+00:00","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-java-incrementing-every-character-in-a-string-by-a-large-amount\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Java incrementing every character in a string by a large amount?","datePublished":"2022-11-10T20:45:45+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/"},"wordCount":105,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["java","loops"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/","url":"https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/","name":"[Solved] Java incrementing every character in a string by a large amount? - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-11-10T20:45:45+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-java-incrementing-every-character-in-a-string-by-a-large-amount\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Java incrementing every character in a string by a large amount?"}]},{"@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\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","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\/20834","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=20834"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/20834\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=20834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=20834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=20834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}