{"id":353,"date":"2024-02-20T08:51:32","date_gmt":"2024-02-20T07:51:32","guid":{"rendered":"https:\/\/solarxbike.se\/labbet\/code-snippets\/?p=353"},"modified":"2024-02-20T08:58:53","modified_gmt":"2024-02-20T07:58:53","slug":"vad-ar-json","status":"publish","type":"post","link":"https:\/\/solarxbike.se\/labbet\/code-snippets\/353\/vad-ar-json\/","title":{"rendered":"Vad \u00e4r json"},"content":{"rendered":"<pre><strong>K\u00e4lla<\/strong>: jsonapi.org | <a href=\"https:\/\/www.json.org\/json-sv.html\">json.org<\/a> |<\/pre>\n<hr \/>\n<h2>What is JSON?<\/h2>\n<p><b>JSON<\/b>\u00a0(JavaScript Object Notation) \u00e4r ett l\u00e4ttviktigt datautbytesformat. Det \u00e4r enkelt f\u00f6r m\u00e4nniskor att l\u00e4sa och skriva. Det \u00e4r enkelt f\u00f6r maskiner att parsa och generera.<\/p>\n<ul>\n<li>JSON stands for\u00a0<b>J<\/b>ava<b>S<\/b>cript\u00a0<b>O<\/b>bject\u00a0<b>N<\/b>otation<\/li>\n<li>JSON is a lightweight data-interchange format<\/li>\n<li>JSON is plain text written in JavaScript object notation<\/li>\n<li>JSON is used to send data between computers<\/li>\n<li>JSON is language independent\u00a0<b>*<\/b><\/li>\n<\/ul>\n<h4>Resource object<\/h4>\n<p>Ett\u00a0<i>objekt<\/i>\u00a0\u00e4r en oordnad m\u00e4ngd med nyckel\/v\u00e4rdepar. Ett objekt b\u00f6rjar med\u00a0<tt>{<\/tt><small>v\u00e4nster klammerparentes<\/small>\u00a0och slutar med\u00a0<tt>}<\/tt><small>h\u00f6ger klammerparentes<\/small>. Varje nyckel f\u00f6ljs av\u00a0<tt>:<\/tt><small>kolon<\/small>\u00a0och nyckel\/v\u00e4rdeparen \u00e5tskiljs av\u00a0<tt>,<\/tt><small>komma<\/small>.<\/p>\n<p style=\"padding-left: 40px;\">A resource object\u00a0<strong>MUST<\/strong>\u00a0contain at least the following top-level members:<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><code class=\"language-plaintext highlighter-rouge\">id<\/code><\/li>\n<li><code class=\"language-plaintext highlighter-rouge\">type<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Member names<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>K\u00e4lla: jsonapi.org | json.org | What is JSON? JSON\u00a0(JavaScript Object Notation) \u00e4r ett l\u00e4ttviktigt datautbytesformat. Det \u00e4r enkelt f\u00f6r m\u00e4nniskor att l\u00e4sa och skriva. Det \u00e4r enkelt f\u00f6r maskiner att parsa och generera. JSON stands for\u00a0JavaScript\u00a0Object\u00a0Notation JSON is a lightweight data-interchange format JSON is plain text written in JavaScript object notation JSON is used to &#8230; <a title=\"Vad \u00e4r json\" class=\"read-more\" href=\"https:\/\/solarxbike.se\/labbet\/code-snippets\/353\/vad-ar-json\/\" aria-label=\"L\u00e4s mer om Vad \u00e4r json\">L\u00e4s mer<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":""},"categories":[23],"tags":[],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-beskrivning"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/solarxbike.se\/labbet\/code-snippets\/wp-json\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solarxbike.se\/labbet\/code-snippets\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solarxbike.se\/labbet\/code-snippets\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solarxbike.se\/labbet\/code-snippets\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solarxbike.se\/labbet\/code-snippets\/wp-json\/wp\/v2\/comments?post=353"}],"version-history":[{"count":3,"href":"https:\/\/solarxbike.se\/labbet\/code-snippets\/wp-json\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":356,"href":"https:\/\/solarxbike.se\/labbet\/code-snippets\/wp-json\/wp\/v2\/posts\/353\/revisions\/356"}],"wp:attachment":[{"href":"https:\/\/solarxbike.se\/labbet\/code-snippets\/wp-json\/wp\/v2\/media?parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solarxbike.se\/labbet\/code-snippets\/wp-json\/wp\/v2\/categories?post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solarxbike.se\/labbet\/code-snippets\/wp-json\/wp\/v2\/tags?post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}