mirror of
https://github.com/dkhamsing/open-source-ios-apps.git
synced 2024-12-23 06:48:33 +01:00
10 lines
141 B
Ruby
10 lines
141 B
Ruby
|
require 'json'
|
||
|
|
||
|
c = File.read 'contents.json'
|
||
|
j = JSON.parse c
|
||
|
|
||
|
c = j['categories']
|
||
|
|
||
|
c.sort_by { |h| h['title']}
|
||
|
.each { |x| puts x['id']}
|