{"id":378,"date":"2023-08-17T20:43:05","date_gmt":"2023-08-24T06:47:14","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/"},"modified":"2025-07-31T23:07:23","modified_gmt":"2025-07-31T14:07:23","slug":"json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/","title":{"rendered":"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09"},"content":{"rendered":"<p>\u4eca\u65e5\u306f\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3067\u3042\u308bjson-server\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3053\u306e\u30c4\u30fc\u30eb\u306f\u3001\u308f\u305a\u304b1\u5206\u3067\u30e2\u30c3\u30af\u306eRest JSON\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u901a\u5e38\u306e\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u591a\u304f\u306e\u30c1\u30fc\u30e0\u3084\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306eAPI\u3068\u9023\u643a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u60f3\u50cf\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u81ea\u5206\u306e\u4f5c\u696d\u3092\u958b\u59cb\u3059\u308b\u305f\u3081\u306b\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30ec\u30b9\u30c8\u30d5\u30eb\u306aWeb\u30b5\u30fc\u30d3\u30b9\u3092\u547c\u3073\u51fa\u3057\u3066JSON\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u72b6\u6cc1\u3067\u3059\u3002\u7de0\u3081\u5207\u308a\u304c\u8feb\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u5f7c\u3089\u306e\u4f5c\u696d\u304c\u5b8c\u4e86\u3059\u308b\u306e\u3092\u5f85\u3063\u3066\u304b\u3089\u81ea\u5206\u306e\u4f5c\u696d\u3092\u59cb\u3081\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u30c7\u30e2\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u30e2\u30c3\u30af\u306e\u30ec\u30b9\u30c8\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3092\u7528\u610f\u3057\u305f\u3044\u5834\u5408\u306f\u3001json-server\u304c\u5fc5\u8981\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<h2>JSON \u30b5\u30fc\u30d0\u30fc<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648bc2daa94e2bdf7bc1bf\/2-0.png\" alt=\"json server, json-server\" \/><\/div>\n<h3>JSON Server\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h3>\n<p>\u3042\u306a\u305f\u306e\u30de\u30b7\u30f3\u306b\u306fNPM\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001NPM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u3053\u306e\u6295\u7a3f\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4ee5\u4e0b\u306f\u3001json-server\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u30b3\u30de\u30f3\u30c9\u3067\u3001\u79c1\u306e\u30de\u30b7\u30f3\u4e0a\u3067\u306e\u51fa\u529b\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ npm install -g json-server\r\nnpm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases &gt;= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.\r\n\/usr\/local\/bin\/json-server -&gt; \/usr\/local\/lib\/node_modules\/json-server\/bin\/index.js\r\n- bytes@2.3.0 node_modules\/json-server\/node_modules\/raw-body\/node_modules\/bytes\r\n\/usr\/local\/lib\r\n\u2514\u2500\u252c json-server@0.8.10\r\n  \u251c\u2500\u252c body-parser@1.15.1\r\n  \u2502 \u2514\u2500\u2500 bytes@2.3.0\r\n  \u251c\u2500\u252c compression@1.6.1\r\n  \u2502 \u2514\u2500\u2500 bytes@2.2.0\r\n  \u251c\u2500\u252c lowdb@0.10.3\r\n  \u2502 \u2514\u2500\u252c steno@0.4.4\r\n  \u2502   \u2514\u2500\u2500 graceful-fs@4.1.4\r\n  \u251c\u2500\u252c update-notifier@0.5.0\r\n  \u2502 \u2514\u2500\u252c configstore@1.4.0\r\n  \u2502   \u251c\u2500\u2500 graceful-fs@4.1.4\r\n  \u2502   \u2514\u2500\u252c write-file-atomic@1.1.4\r\n  \u2502     \u2514\u2500\u2500 graceful-fs@4.1.4\r\n  \u2514\u2500\u252c yargs@4.7.0\r\n    \u251c\u2500\u252c pkg-conf@1.1.2\r\n    \u2502 \u2514\u2500\u252c load-json-file@1.1.0\r\n    \u2502   \u2514\u2500\u2500 graceful-fs@4.1.4\r\n    \u2514\u2500\u252c read-pkg-up@1.0.1\r\n      \u2514\u2500\u252c read-pkg@1.1.0\r\n        \u2514\u2500\u252c path-type@1.1.0\r\n          \u2514\u2500\u2500 graceful-fs@4.1.4\r\n\r\n$\r\n<\/code><\/pre>\n<h3>json-server\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/h3>\n<pre class=\"post-pre\"><code>$ json-server -v\r\n0.8.10\r\n\r\n$ json-server -help\r\n\/usr\/local\/bin\/json-server [options] &lt;source&gt;\r\n\r\nOptions:\r\n  --config, -c       Path to config file           [default: \"json-server.json\"]\r\n  --port, -p         Set port                                    [default: 3000]\r\n  --host, -H         Set host                               [default: \"0.0.0.0\"]\r\n  --watch, -w        Watch file(s)                                     [boolean]\r\n  --routes, -r       Path to routes file\r\n  --static, -s       Set static files directory\r\n  --read-only, --ro  Allow only GET requests                           [boolean]\r\n  --no-cors, --nc    Disable Cross-Origin Resource Sharing             [boolean]\r\n  --no-gzip, --ng    Disable GZIP Content-Encoding                     [boolean]\r\n  --snapshots, -S    Set snapshots directory                      [default: \".\"]\r\n  --delay, -d        Add delay to responses (ms)\r\n  --id, -i           Set database id property (e.g. _id)         [default: \"id\"]\r\n  --quiet, -q        Suppress log messages from output                 [boolean]\r\n \r\n$\r\n<\/code><\/pre>\n<h3>JSON\u30b5\u30fc\u30d0\u30fc\u3092\u5b9f\u884c\u3059\u308b<\/h3>\n<p>\u3067\u306f\u3001\u307e\u305ajson-server\u3092\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306f\u79c1\u306e\u5f93\u696d\u54e1\u306ejson\u30c7\u30fc\u30bf\u3092\u542b\u3080\u30b5\u30f3\u30d7\u30eb\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>{\r\n  \"employees\": [\r\n    {\r\n      \"id\": 1,\r\n      \"name\": \"Pankaj\",\r\n      \"salary\": \"10000\"\r\n    },\r\n    {\r\n      \"name\": \"David\",\r\n      \"salary\": \"5000\",\r\n      \"id\": 2\r\n    }\r\n  ]\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u914d\u5217\u306e\u540d\u524d\u3067\u3042\u308b\u300cemployees\u300d\u3067\u3059\u3002JSON\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u3053\u308c\u306b\u57fa\u3065\u3044\u3066REST API\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30d5\u30a1\u30a4\u30eb\u3067json-server\u3092\u59cb\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>$ json-server --watch db.json\r\n\r\n  \\{^_^}\/ hi!\r\n\r\n  Loading db.json\r\n  Done\r\n\r\n  Resources\r\n  https:\/\/localhost:3000\/employees\r\n\r\n  Home\r\n  https:\/\/localhost:3000\r\n\r\n  Type s + enter at any time to create a snapshot of the database\r\n  Watching...\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u9589\u3058\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u305d\u3046\u3057\u306a\u3044\u3068\u3001json-server\u304c\u505c\u6b62\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u306eCRUD\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>JSON\u30b5\u30fc\u30d0\u30fc\u306eGET\u30ea\u30af\u30a8\u30b9\u30c8 &#8211; \u5168\u3066\u306e\u5f93\u696d\u54e1\u3092\u8aad\u307f\u53d6\u308b<\/h3>\n<pre class=\"post-pre\"><code>$ curl -X GET -H \"Content-Type: application\/json\"  \"https:\/\/localhost:3000\/employees\"\r\n[\r\n  {\r\n    \"id\": 1,\r\n    \"name\": \"Pankaj\",\r\n    \"salary\": \"10000\"\r\n  },\r\n  {\r\n    \"name\": \"David\",\r\n    \"salary\": \"5000\",\r\n    \"id\": 2\r\n  }\r\n]\r\n$\r\n<\/code><\/pre>\n<h3>ID\u3092\u57fa\u306bjson-server\u304b\u3089\u5f93\u696d\u54e1\u3092\u53d6\u5f97\u3059\u308b\u3002<\/h3>\n<pre class=\"post-pre\"><code>$ curl -X GET -H \"Content-Type: application\/json\"  \"https:\/\/localhost:3000\/employees\/1\"\r\n{\r\n  \"id\": 1,\r\n  \"name\": \"Pankaj\",\r\n  \"salary\": \"10000\"\r\n}\r\n$\r\n<\/code><\/pre>\n<h3>JSON\u30b5\u30fc\u30d0\u30fc\u306ePOST &#8211; \u5f93\u696d\u54e1\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<pre class=\"post-pre\"><code>$ curl -X POST -H \"Content-Type: application\/json\" -d '{\"name\": \"Lisa\",\"salary\": \"2000\"}' \"https:\/\/localhost:3000\/employees\"\r\n{\r\n  \"name\": \"Lisa\",\r\n  \"salary\": 2000,\r\n  \"id\": 3\r\n}\r\n$\r\n<\/code><\/pre>\n<h3>JSON \u30b5\u30fc\u30d0\u30fc\u306e PUT &#8211; \u5f93\u696d\u54e1\u30c7\u30fc\u30bf\u306e\u66f4\u65b0<\/h3>\n<pre class=\"post-pre\"><code>$ curl -XPUT -H \"Content-Type: application\/json\" -d '{\"name\": \"Lisa\", \"salary\": \"8000\"}' \"https:\/\/localhost:3000\/employees\/3\"\r\n{\r\n  \"name\": \"Lisa\",\r\n  \"salary\": 8000,\r\n  \"id\": 3\r\n}\r\n$\r\n<\/code><\/pre>\n<h3>JSON\u30b5\u30fc\u30d0\u30fc\u306eDELETE &#8211; \u5f93\u696d\u54e1\u3092\u524a\u9664\u3059\u308b<\/h3>\n<pre class=\"post-pre\"><code>$ curl -X DELETE -H \"Content-Type: application\/json\"  \"https:\/\/localhost:3000\/employees\/2\"\r\n{}\r\n$ curl -GET -H \"Content-Type: application\/json\"  \"https:\/\/localhost:3000\/employees\"\r\n[\r\n  {\r\n    \"id\": 1,\r\n    \"name\": \"Pankaj\",\r\n    \"salary\": \"10000\"\r\n  },\r\n  {\r\n    \"name\": \"Lisa\",\r\n    \"salary\": 8000,\r\n    \"id\": 3\r\n  }\r\n]\r\n$\r\n<\/code><\/pre>\n<p>\u30b7\u30f3\u30d7\u30eb\u306aJSON\u3092\u4f7f\u3063\u3066\u3001json-server\u306f\u79c1\u305f\u3061\u304c\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30c7\u30e2API\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001\u3059\u3079\u3066\u306ePUT\u3001POST\u3001DELETE\u30ea\u30af\u30a8\u30b9\u30c8\u306fdb.json\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002GET\u3068DELETE\u306eURI\u306f\u540c\u3058\u3067\u3042\u308a\u3001\u540c\u69d8\u306bPOST\u3068PUT\u30ea\u30af\u30a8\u30b9\u30c8\u3082\u540c\u3058\u3067\u3059\u3002\u307e\u305f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30de\u30c3\u30d4\u30f3\u30b0\u30d5\u30a1\u30a4\u30eb\u3067\u30ab\u30b9\u30bf\u30e0URI\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u3092\u6301\u3064JSON\u30b5\u30fc\u30d0\u30fc<\/h3>\n<p>\u79c1\u305f\u3061\u306ejson-server\u304c\u4f7f\u7528\u3059\u308b\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u3092\u6301\u3064\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002routes.json<\/p>\n<pre class=\"post-pre\"><code>{\r\n  \"\/employees\/list\": \"\/employees\",\r\n  \"\/employees\/get\/:id\": \"\/employees\/:id\",\r\n  \"\/employees\/create\": \"\/employees\",\r\n  \"\/employees\/update\/:id\": \"\/employees\/:id\",\r\n  \"\/employees\/delete\/:id\": \"\/employees\/:id\"\r\n}\r\n<\/code><\/pre>\n<p>\u6b21\u306e\u3088\u3046\u306b\u30cd\u30a4\u30c6\u30a3\u30d6\u306a\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<br \/>\njson-server\u306e\u30dd\u30fc\u30c8\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u3001\u7b2c\u4e09\u8005API\u306e\u3088\u3046\u306b\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u30ea\u30a2\u30eb\u306a\u30b5\u30fc\u30d3\u30b9\u304c\u6e96\u5099\u3067\u304d\u305f\u3089\u3001\u30d9\u30fc\u30b9URL\u3092\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306bJSON\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>$ json-server --port 7000 --routes routes.json --watch db.json\r\n(node:60899) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.\r\n\r\n  \\{^_^}\/ hi!\r\n\r\n  Loading db.json\r\n  Loading routes.json\r\n  Done\r\n\r\n  Resources\r\n  https:\/\/localhost:7000\/employees\r\n\r\n  Other routes\r\n  \/employees\/list -&gt; \/employees\r\n  \/employees\/get\/:id -&gt; \/employees\/:id\r\n  \/employees\/create -&gt; \/employees\r\n  \/employees\/update\/:id -&gt; \/employees\/:id\r\n  \/employees\/delete\/:id -&gt; \/employees\/:id\r\n\r\n  Home\r\n  https:\/\/localhost:7000\r\n\r\n  Type s + enter at any time to create a snapshot of the database\r\n  Watching...\r\n\r\n<\/code><\/pre>\n<p>\u79c1\u305f\u3061\u304c\u5b9a\u7fa9\u3057\u305f\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002 (Watashitachi ga teigi shita kasutamu r\u016bto o hy\u014dji shiteimasu.)<\/p>\n<h3>\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u3092\u6301\u3064JSON\u30b5\u30fc\u30d0\u30fc\u306e\u4f8b<\/h3>\n<p>\u4ee5\u4e0b\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u30eb\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u305f\u30b3\u30de\u30f3\u30c9\u3068\u305d\u306e\u51fa\u529b\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl -X GET -H \"Content-Type: application\/json\"  \"https:\/\/localhost:7000\/employees\/list\"\r\n[\r\n  {\r\n    \"id\": 1,\r\n    \"name\": \"Pankaj\",\r\n    \"salary\": \"10000\"\r\n  },\r\n  {\r\n    \"name\": \"Lisa\",\r\n    \"salary\": 8000,\r\n    \"id\": 3\r\n  }\r\n]\r\n\r\n$ curl -X GET -H \"Content-Type: application\/json\"  \"https:\/\/localhost:7000\/employees\/get\/1\"\r\n{\r\n  \"id\": 1,\r\n  \"name\": \"Pankaj\",\r\n  \"salary\": \"10000\"\r\n}\r\n\r\n$ curl -X POST -H \"Content-Type: application\/json\" -d '{\"name\": \"Lisa\",\"salary\": \"2000\"}' \"https:\/\/localhost:7000\/employees\/create\"\r\n{\r\n  \"name\": \"Lisa\",\r\n  \"salary\": 2000,\r\n  \"id\": 4\r\n}\r\n\r\n$ curl -XPUT -H \"Content-Type: application\/json\" -d '{\"name\": \"Lisa\", \"salary\": \"8000\"}' \"https:\/\/localhost:7000\/emloyees\/update\/4\"\r\n{\r\n  \"name\": \"Lisa\",\r\n  \"salary\": 8000,\r\n  \"id\": 4\r\n}\r\n\r\n$ curl -XDELETE -H \"Content-Type: application\/json\"  \"https:\/\/localhost:7000\/employees\/delete\/4\"\r\n{}\r\n\r\n$ curl -GET -H \"Content-Type: application\/json\"  \"https:\/\/localhost:7000\/employees\/list\"\r\n[\r\n  {\r\n    \"id\": 1,\r\n    \"name\": \"Pankaj\",\r\n    \"salary\": \"10000\"\r\n  },\r\n  {\r\n    \"name\": \"Lisa\",\r\n    \"salary\": 8000,\r\n    \"id\": 3\r\n  }\r\n]\r\n$\r\n<\/code><\/pre>\n<p>JSON\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30bd\u30fc\u30c8\u3001\u691c\u7d22\u3001\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306e\u4ed6\u306e\u4fbf\u5229\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u3053\u308c\u304cjson-server\u306e\u3059\u3079\u3066\u3067\u3042\u308a\u3001\u30c7\u30e2\u306eRest JSON API\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u304d\u306b\u306f\u3044\u3064\u3082\u3053\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u53c2\u7167\uff1ajson-server GitHub<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u306f\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3067\u3042\u308bjson-server\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3053\u306e\u30c4\u30fc\u30eb\u306f\u3001\u308f\u305a\u304b1\u5206\u3067\u30e2\u30c3\u30af\u306eRest JSON\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u901a\u5e38\u306e\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u591a\u304f\u306e\u30c1\u30fc\u30e0\u3084\u30b5\u30fc [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-378","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/json\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\" \/>\n<meta property=\"og:description\" content=\"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/json\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-24T06:47:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T14:07:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648bc2daa94e2bdf7bc1bf\/2-0.png\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"14\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/\",\"name\":\"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-08-24T06:47:14+00:00\",\"dateModified\":\"2025-07-31T14:07:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"description\":\"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09 - Blog - Silicon Cloud","description":"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","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:\/\/www.silicloud.com\/ja\/blog\/json\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\/","og_locale":"ja_JP","og_type":"article","og_title":"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09","og_description":"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/json\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-24T06:47:14+00:00","article_modified_time":"2025-07-31T14:07:23+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65648bc2daa94e2bdf7bc1bf\/2-0.png"}],"author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"14\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/","name":"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-08-24T06:47:14+00:00","dateModified":"2025-07-31T14:07:23+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"description":"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"JSON\u30b5\u30fc\u30d0\u30fc\uff08json-server\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/json%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88json-server%ef%bc%89\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=378"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/378\/revisions"}],"predecessor-version":[{"id":39824,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/378\/revisions\/39824"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}