Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Feature #221477

open

JSONフォーマット調査

Added by ラム フックユイ over 11 years ago. Updated over 11 years ago.

Status:
Assigned
Priority:
Normal
Category:
内部設計
Start date:
2013-09-29
Due date:
% Done:

10%

Estimated time:

Description

JSONフォーマットは下記に考えています。
アイテムをレイヤー毎に分けます。
・layer1:は自分の登録したアイテム
・layer2:layer1にあるアイテムの紐づくアイテム
・layer3:layer2にあるアイテムの紐づくアイテム

例:
サンプルJSONデータも添付しました。

{
    "layer1": {
        "items": [
            {
                "id": "10",
                "image": "/9j/4AAQSkZJRgABAQEASABIAAD/" 
            },
            {
                "id": "11",
                "image": "/9j/4AAQSkZJRgABAQEAYABgAAD/" 
            }
        ]
    },
   "layer2": {
        "items": [
            {
                "id": "20",
                "parent_id":"10",
                "image": "/9j/4AAQSkZJRgABAQEASABIAAD/" 
            },
            {
                "id": "21",
                "parent_id":"11",
                "image": "/9j/4AAQSkZJRgABAQEAYABgAAD/" 
            }
        ]
    },
    "layer3": {
        "items": [
            {
                "id": "30",
                "parent_id":"20",
                "image": "/9j/4AAQSkZJRgABAQEAYABgAAD/" 
            },
            {
                "id": "31",
                "parent_id":"21",
                "image": "/9j/4AAQSkZJRgABAQEASABIAAD/" 
            }
        ]
    }
}


Files

json_sample.txt (42.7 KB) json_sample.txt ラム フックユイ, 2013-09-30 12:00 AM
Actions #1

Updated by ラム フックユイ over 11 years ago

おすすめJSONエディタツール: http://www.jsoneditoronline.org/ 

Also available in: Atom PDF