{"id":570,"date":"2012-11-09T09:07:47","date_gmt":"2012-11-09T00:07:47","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=570"},"modified":"2018-11-14T16:33:59","modified_gmt":"2018-11-14T07:33:59","slug":"ruby%e3%81%aeyaml%e3%81%a8%e3%82%b7%e3%83%b3%e3%83%9c%e3%83%ab%e3%81%a8%e7%a7%81","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2012\/11\/09\/ruby%e3%81%aeyaml%e3%81%a8%e3%82%b7%e3%83%b3%e3%83%9c%e3%83%ab%e3%81%a8%e7%a7%81\/","title":{"rendered":"Ruby\u306eYAML\u3068\u30b7\u30f3\u30dc\u30eb\u3068\u79c1"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u6cb3\u91ce\u3067\u3059\u3002<\/p>\n<p>\u8fd1\u3005\u52c9\u5f37\u4f1a\u3067\u306e\u767a\u8868\u3092\u63a7\u3048\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001YAML\u3067\u30a2\u30a6\u30c8\u30e9\u30a4\u30f3\u3092\u66f8\u3044\u3066HTML\u306b\u5909\u63db\u3057\u305f\u3089\u826f\u3044\u3093\u3058\u3083\u306d\uff1f\u3068\u601d\u3044\u3064\u304d\u3001ruby\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u30cf\u30de\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002YAML\u3067\u66f8\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3001erb\u3092\u4f7f\u3063\u3066\u51fa\u529b\u3057\u3088\u3046\u3068\u3057\u3066\u305f\u3093\u3067\u3059\u304c\u3001\u3069\u3046\u3082\u3046\u307e\u304f\u884c\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>YAML<\/p>\n<pre class=\"lang:yaml decode:true \" >hoge: boo\r\nfuga: foo\r\npiyo: woo<\/pre>\n<p>RUBY<\/p>\n<pre class=\"lang:ruby decode:true \" ># coding: utf-8\r\n\r\nrequire 'yaml'\r\nrequire 'erb'\r\nrequire 'pp'\r\n\r\ndef main\r\n  raw_yaml = ARGF.read()\r\n  obj = YAML.load(raw_yaml)\r\n\r\n  pp obj\r\n\r\n  template = &lt;&lt;TEMPLATE\r\n    hoge = &lt;%= obj[:hoge] %&gt;\r\n    fuga = &lt;%= obj[:fuga] %&gt;\r\n    piyo = &lt;%= obj[:piyo] %&gt;\r\nTEMPLATE\r\n\r\n  ERB.new(template).run(binding)\r\n\r\nend\r\n\r\nif __FILE__ == $0\r\n  main\r\nend<\/pre>\n<p>\u51fa\u529b<\/p>\n<pre class=\"lang:sh decode:true \" >$ cat test.yml | ruby test.rb\r\n{\"piyo\"=&gt;\"woo\", \"fuga\"=&gt;\"foo\", \"hoge\"=&gt;\"boo\"}\r\n    hoge = \r\n    fuga = \r\n    piyo = <\/pre>\n<p>pp\u3067\u306f\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001erb\u3067\u306f\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u306a\u3093\u3067\u30fc\uff01\u3068\u3057\u3070\u3089\u304f\u60a9\u3093\u3067\u3044\u305f\u3093\u3067\u3059\u304c\u3001\u7b54\u3048\u306f\u5358\u7d14\u3067\u3057\u305f\u3002<\/p>\n<p>YAML\u3067\u8aad\u307f\u8fbc\u3093\u3060\u30cf\u30c3\u30b7\u30e5\u306e\u30ad\u30fc\u306f\u6587\u5b57\u5217\uff08<code>\"hoge\"<\/code>\uff09\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30b7\u30f3\u30dc\u30eb\uff08<code>:hoge<\/code>\uff09\u3067\u53c2\u7167\u3057\u3066\u3082\u5bfe\u5fdc\u3059\u308b\u5024\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3093\u3067\u3059\u306d\u3002pp\u3067\u51fa\u529b\u3057\u305f\u5185\u5bb9\u3092\u826f\u304f\u898b\u308b\u3068\u4e00\u76ee\u77ad\u7136\u306a\u3093\u3067\u3059\u3051\u3069\u306d\u2026\u6c17\u3065\u304f\u306e\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ad\u30fc\u3092\u6587\u5b57\u5217\u306b\u3059\u308c\u3070\u89e3\u6c7a\u306a\u3093\u3067\u3059\u3051\u3069\u3001\u30b7\u30f3\u30dc\u30eb\u3067\u66f8\u304d\u305f\u3044\u306e\u3067\u8272\u3005\u3068\u6a21\u7d22\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>Rails\u7531\u6765\u306esymbolize_keys<\/h2>\n<p>Rails\u3060\u3068Hash\u3092\u62e1\u5f35\u3057\u3066\u3001symbolize_keys\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u540d\u79f0\u306e\u901a\u308a\u3001\u30ad\u30fc\u3092Symbol\u306b\u5909\u63db\u3057\u3066\u304f\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u4eca\u56de\u307f\u305f\u3044\u306bRails\u4f7f\u3063\u3066\u308b\u308f\u3051\u3058\u3083\u306a\u3044\u3093\u3060\u3051\u3069\u2026\u3068\u3044\u3046\u6642\u306b\u306f\u3001Rails\u306eHash\u3092<strike>\u30b3\u30d4\u30da<\/strike>\u53c2\u8003\u306b\u3057\u3066symbolize_keys\u3092\u5b9f\u88c5\u3057\u3066\u4f7f\u3046\u3053\u3068\u3082\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u50d5\u3082\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>RUBY<\/p>\n<pre class=\"lang:ruby decode:true \" ># coding: utf-8\r\n\r\nrequire 'yaml'\r\nrequire 'erb'\r\nrequire 'pp'\r\n\r\nclass Hash\r\n  def symbolize_keys!\r\n    keys.each do |key|\r\n      self[(key.to_sym rescue key) || key] = delete(key)\r\n    end\r\n    self\r\n  end\r\nend\r\n\r\ndef main\r\n  raw_yaml = ARGF.read()\r\n  obj = YAML.load(raw_yaml)\r\n\r\n  pp obj.symbolize_keys! # \u3053\u3053\u3067\u5909\u63db\r\n\r\n  template = &lt;&lt;TEMPLATE\r\n    hoge = &lt;%= obj[:hoge] %&gt;\r\n    fuga = &lt;%= obj[:fuga] %&gt;\r\n    piyo = &lt;%= obj[:piyo] %&gt;\r\nTEMPLATE\r\n\r\n  ERB.new(template).run(binding)\r\n\r\nend\r\n\r\nif __FILE__ == $0\r\n  main\r\nend\r\n<\/pre>\n<p>\u51fa\u529b<\/p>\n<pre class=\"lang:sh decode:true \" >$ cat test.yml | ruby test.rb\r\n{:hoge=&gt;\"boo\", :fuga=&gt;\"foo\", :piyo=&gt;\"woo\"}\r\n    hoge = boo\r\n    fuga = foo\r\n    piyo = woo<\/pre>\n<p>\u5f53\u305f\u308a\u524d\u3067\u3059\u304c\u3001\u3061\u3083\u3093\u3068\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\uff01<\/p>\n<h2>YAML\u5074\u306b\u30b7\u30f3\u30dc\u30eb\u3092\u66f8\u3044\u3066\u307f\u305f<\/h2>\n<p>\u3068\u308a\u3042\u3048\u305a\u4e0a\u624b\u304f\u884c\u3063\u305f\u3093\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068YAML\u4f7f\u3044\u305f\u3044\u306a\uff5e\u3063\u3066\u5ea6\u306bHash\u3092\u62e1\u5f35\u3059\u308b\u306e\u3082\u9762\u5012\u3067\u3059\u3002\u3082\u3057\u304b\u3057\u3066\u3001YAML\u5074\u3067\u30b7\u30f3\u30dc\u30eb\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u307f\u305f\u3089\u3001\u884c\u3051\u308b\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>YAML<\/p>\n<pre class=\"lang:yaml decode:true \" >:hoge: boo\r\n:fuga: foo\r\n:piyo: woo<\/pre>\n<p>RUBY\uff08\u6700\u521d\u3068\u540c\u3058\u3067\u3059\uff09<\/p>\n<pre class=\"lang:ruby decode:true \" ># coding: utf-8\r\n\r\nrequire 'yaml'\r\nrequire 'erb'\r\nrequire 'pp'\r\n\r\ndef main\r\n  raw_yaml = ARGF.read()\r\n  obj = YAML.load(raw_yaml)\r\n\r\n  pp obj\r\n\r\n  template = &lt;&lt;TEMPLATE\r\n    hoge = &lt;%= obj[:hoge] %&gt;\r\n    fuga = &lt;%= obj[:fuga] %&gt;\r\n    piyo = &lt;%= obj[:piyo] %&gt;\r\nTEMPLATE\r\n\r\n  ERB.new(template).run(binding)\r\n\r\nend\r\n\r\nif __FILE__ == $0\r\n  main\r\nend<\/pre>\n<p>\u51fa\u529b<\/p>\n<pre class=\"lang:sh decode:true \" >$ cat test.yml | ruby test.rb\r\n{:hoge=&gt;\"boo\", :fuga=&gt;\"foo\", :piyo=&gt;\"woo\"}\r\n    hoge = boo\r\n    fuga = foo\r\n    piyo = woo<\/pre>\n<p>\u3067\u3001\u3067\u305f\u30fc\u30fc\u30fc\u30fc\uff01\uff01\uff01<\/p>\n<p>\u30ce\u30ea\u3067\u66f8\u3044\u3066\u307f\u305f\u3093\u3067\u3001\u3066\u3063\u304d\u308a\u30d1\u30fc\u30b9\u30a8\u30e9\u30fc\u3067\u3082\u8d77\u304d\u308b\u304b\u3068\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u3061\u3083\u3093\u3068\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u307e\u3055\u304b\u3068\u601d\u3063\u3066\u8abf\u3079\u305f\u3068\u3053\u308d\u3001\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u3082\u8f09\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/doc.ruby-lang.org\/ja\/1.8.7\/library\/yaml.html\" title=\"library yaml\" target=\"_blank\">library yaml<\/a>\u3088\u308a<\/p>\n<blockquote><p>\n\u6a19\u6e96\u6dfb\u4ed8\u306e yaml \u95a2\u9023\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f 1.8 \u7cfb\u30011.9 \u7cfb\u3068\u3082\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a Ruby \u72ec\u81ea\u306e\u62e1\u5f35\u3001\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002\u6a19\u6e96\u6dfb\u4ed8\u30e9\u30a4\u30d6\u30e9\u30ea\u4ee5\u5916\u3067 yaml \u3092\u6271\u3046\u30e9 \u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306a\u3069\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30fb \":foo\" \u306e\u3088\u3046\u306a\u6587\u5b57\u5217\u306f\u305d\u306e\u307e\u307e Symbol \u3068\u3057\u3066\u6271\u3048\u308b\n<\/p><\/blockquote>\n<p>\u306a\u308b\u307b\u3069\uff5e\u3002<\/p>\n<h2>Hashie\u3068\u3044\u3046\u306e\u304c\u3042\u308b<\/h2>\n<p><code>:hoge: boo<\/code>\u3068\u66f8\u3051\u308b\u306e\u306f\u826f\u3044\u3093\u3067\u3059\u304c\u3001\u3084\u3063\u3071\u308a\u3053\u308c\u3063\u3066YAML\u306eRuby\u65b9\u8a00\u3067\u3059\u3088\u306d\u3002YAML\u306f\u7279\u5b9a\u306e\u8a00\u8a9e\u306b\u4f9d\u5b58\u3057\u305f\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u306f\u306a\u3044\u3093\u3067\u3001\u4ed6\u306e\u8a00\u8a9e\u3067\u4f7f\u3046\u3068\u304d\u306b\u554f\u984c\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u3055\u3089\u306b\u30b0\u30b0\u3063\u3066\u307f\u308b\u3068\u3001<a href=\"https:\/\/github.com\/intridea\/hashie\" title=\"Hashie\">Hashie<\/a>\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u767a\u898b\u3057\u307e\u3057\u305f\u3002Hashie\u3067\u306f\u3001\u30ad\u30fc\u3092\u30b7\u30f3\u30dc\u30eb\u3068\u3057\u3066\u6271\u3063\u305f\u308a\u3001\u3055\u3089\u306b\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3057\u3066\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>RUBY<\/p>\n<pre class=\"lang:ruby decode:true \" ># coding: utf-8\r\n\r\nrequire 'yaml'\r\nrequire 'erb'\r\nrequire 'pp'\r\nrequire 'hashie'\r\n\r\ndef main\r\n  raw_yaml = ARGF.read()\r\n  obj = Hashie::Mash.new(YAML.load(raw_yaml)) # Hashie::Mash\u3092\u4f7f\u3044\u307e\u3059\r\n\r\n  pp obj\r\n\r\n  # template \u3082\u5c11\u3057\u5909\u3048\u3066\u307f\u307e\u3059\r\n  template = &lt;&lt;TEMPLATE\r\n    hoge = &lt;%= obj[\"hoge\"] %&gt;\r\n    fuga = &lt;%= obj[:fuga] %&gt;\r\n    piyo = &lt;%= obj.piyo %&gt;\r\nTEMPLATE\r\n\r\n  ERB.new(template).run(binding)\r\n\r\nend\r\n\r\nif __FILE__ == $0\r\n  main\r\nend<\/pre>\n<p>\u51fa\u529b<\/p>\n<pre class=\"lang:sh decode:true \" >$ cat test.yml | ruby test.rb\r\n{\"hoge\"=>\"boo\", \"fuga\"=>\"foo\", \"piyo\"=>\"woo\"}\r\n    hoge = boo\r\n    fuga = foo\r\n    piyo = woo<\/pre>\n<p>pp\u3067\u306f\u30ad\u30fc\u306f\u6587\u5b57\u5217\u306e\u307e\u307e\u3067\u3059\u304c\u3001erb\u3067\u3082\u3061\u3083\u3093\u3068\u51fa\u529b\u3067\u304d\u3066\u307e\u3059\u306d\u3002<\/p>\n<h2>\u8ffd\u8a18\uff1aActiveSupport\u4f7f\u3048\u3070\u826f\u3044\u3067\u3059\u3088<\/h2>\n<p>ActiveSupport\u3092\u4f7f\u3063\u305f\u3089\u3069\u3046\uff1f\u3068\u3044\u3046\u6307\u6458\u3092\u3044\u305f\u3060\u3044\u305f\u306e\u3067\u3001\u52d5\u4f5c\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u30e9\u30a4\u30d6\u30e9\u30ea\u4f7f\u3063\u3066\u3082\u826f\u3044\u3093\u3060\u3063\u305f\u3089\u3001\u7d20\u76f4\u306bActiveSupport\u3092\u4f7f\u3046\u306e\u304c\u30b9\u30e0\u30fc\u30ba\u3067\u3059\u306d\u3002<\/p>\n<p><strong>\u203b\u78ba\u8a8d\u7528\u306eYAML\u306b\u9593\u9055\u3044\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u3084\u308a\u76f4\u3057\u307e\u3057\u305f\u3002\u8a02\u6b63\u3057\u3066\u307e\u3059\u3002at 2012\/11\/09 13:00<\/strong><\/p>\n<p>RUBY<\/p>\n<pre class=\"lang:ruby decode:true \" ># coding: utf-8\r\n\r\nrequire 'yaml'\r\nrequire 'erb'\r\nrequire 'pp'\r\nrequire 'active_support\/all'\r\n\r\ndef main\r\n  raw_yaml = ARGF.read()\r\n  obj = HashWithIndifferentAccess.new(YAML.load(raw_yaml))\r\n\r\n  pp obj\r\n\r\n  template = &lt;&lt;TEMPLATE\r\n    hoge = &lt;%= obj[:hoge] %&gt;\r\n    fuga = &lt;%= obj[:fuga] %&gt;\r\n    piyo = &lt;%= obj[:piyo] %&gt;\r\nTEMPLATE\r\n\r\n  ERB.new(template).run(binding)\r\n\r\nend\r\n\r\nif __FILE__ == $0\r\n  main\r\nend\r\n<\/pre>\n<p>\u51fa\u529b<\/p>\n<pre class=\"lang:sh decode:true \" >$ cat test.yml | ruby test.rb\r\n{\"hoge\"=>\"boo\", \"fuga\"=>\"foo\", \"piyo\"=>\"woo\"}\r\n    hoge = boo\r\n    fuga = foo\r\n    piyo = woo<\/pre>\n<p>ActiveSupport\u3092\u4f7f\u3046\u5834\u5408\u306f<del datetime=\"2012-11-09T04:00:33+00:00\">Hash\u304c\u62e1\u5f35\u3055\u308c\u307e\u3059<\/del>HashWithIndifferentAccess\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5f15\u6570\u306b\u30cf\u30c3\u30b7\u30e5\u3092\u6e21\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306f\u3001\u7279\u306b\u4f55\u3082\u6c17\u306b\u305b\u305a\u30ad\u30fc\u3092\u30b7\u30f3\u30dc\u30eb\u306b\u3057\u3066\u3082\u5024\u304c\u53d6\u5f97\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001Ruby\u304b\u3089YAML\u3092\u6271\u3046\u3068\u304d\u306b\u3001\u30cf\u30c3\u30b7\u30e5\u306e\u30ad\u30fc\u3067\u60a9\u3093\u3060\u3089\u4ee5\u4e0b\u306e\u3069\u308c\u304b\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30ad\u30fc\u306f\u6587\u5b57\u5217\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306a\u306e\u3067\u30b7\u30f3\u30dc\u30eb\u3092\u4f7f\u3046\u306e\u306f\u8ae6\u3081\u308b<\/li>\n<li>symbolize_keys\u3092\u81ea\u524d\u3067\u5b9f\u88c5\u3057\u3066\u30b7\u30f3\u30dc\u30eb\u306b\u5909\u63db<\/li>\n<li>YAML\u5074\u306b\u30b7\u30f3\u30dc\u30eb\u3067\u66f8\u304f<\/li>\n<li>Hashie\u3092\u4f7f\u3063\u3066\u81ea\u7531\u306b\u6271\u3046<\/li>\n<li>ActiveSupport\u306eHashWithIndifferentAccess\u3092\u4f7f\u3063\u3066\u30b7\u30f3\u30dc\u30eb\u306b\u5909\u63db<\/li>\n<\/ul>\n<p>Hashie\u4fbf\u5229\u306a\u306e\u3067\u3001\u4eca\u56de\u306fHashie\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u6cb3\u91ce\u3067\u3059\u3002<\/p>\n<p>\u8fd1\u3005\u52c9\u5f37\u4f1a\u3067\u306e\u767a\u8868\u3092\u63a7\u3048\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001YAML\u3067\u30a2\u30a6\u30c8\u30e9\u30a4\u30f3\u3092\u66f8\u3044\u3066HTML\u306b\u5909\u63db\u3057\u305f\u3089\u826f\u3044\u3093\u3058\u3083\u306d\uff1f\u3068\u601d\u3044\u3064\u304d\u3001ruby\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u30cf\u30de\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2012\/11\/09\/ruby%e3%81%aeyaml%e3%81%a8%e3%82%b7%e3%83%b3%e3%83%9c%e3%83%ab%e3%81%a8%e7%a7%81\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[51,24,50],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/570"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=570"}],"version-history":[{"count":1,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/570\/revisions"}],"predecessor-version":[{"id":18018,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/570\/revisions\/18018"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}