JSON is very popular among social network sites.
I have been searching tools for analyzing JSON and found some good tools for viewing but they do not meet my needs. (like http://jsonviewer.codeplex.com/)
I need to search and filter the data by specific a field and then get some value from another specific field.
Can you suggest a tool or a way to view my JSON data easily?
sample data:
{
"data": [
{
"id": "141816652602643",
"from": {
"name": "Deval Agrifarman",
"id": "896085636"
},
"message": "yang belum bisa berhenti ngerokok silahkan dilihat... kalo ga bisa donlot mampir aja ke rumah bawa camilan :D",
"picture": "http://external.ak.fbcdn.net/safe_image.php?d=AQC3wb7_yd8fdv64&w=130&h=130&url=http\u00253A\u00252F\u00252Fi1.ytimg.com\u00252Fvi\u00252FDiyWK3fzTpA\u00252Fhqdefault.jpg",
"link": "http://www.youtube.com/watch?v=DiyWK3fzTpA",
"name": "Sex, Lies & Cigarettes': Vanguard Sneak Peek (Indonesia Subtitle-Full)",
"description": "Fakta mengenai Industri dan bisnis Rokok diIndonesia, Penetrasi Rokok dalam masyarakat Indonesia.. Dalam Konferensi Dunia untuk Tembakau 2010 Koresponden Chr...",
"icon": "http://static.ak.fbcdn.net/rsrc.php/v1/yD/r/aS8ecmYRys0.gif",
"created_time": "2012-01-26T15:03:21+0000"
},
{
"id": "109379672518544",
"from": {
"name": "Deval Agrifarman",
"id": "896085636"
},
"message": "kesannya kok kayak aku yang minta ke monyet nya yah wkwkwkwk...",
"link": "http://www.facebook.com/photo.php?fbid=107424555941677&set=a.101882006495932.4636.100000224005368&type=1",
"name": "~KeBaB~",
"icon": "http://static.ak.fbcdn.net/rsrc.php/v1/yD/r/aS8ecmYRys0.gif",
"created_time": "2012-01-23T15:33:45+0000",
"comments": {
"data": [
{
"id": "109379672518544_32659",
"from": {
"name": "Dhanank Perdhana",
"id": "1243815675"
},
"message": "Deval: \"Mbah, tolong diramal dong garis tangan saya...\"\nMbak Nyemot: \"Hooo.. kamu ini ngga' cocok jadi pejabat.. Nanti kamu pasti pengen cepet2 beli Bentley.. \"\n\n...huehuehue... :P",
"can_remove": true,
"created_time": "2012-01-23T15:39:34+0000",
"likes": 3,
"user_likes": true
},
{
"id": "109379672518544_32663",
"from": {
"name": "Alex Zar",
"id": "1378608838"
},
"message": "klo sodara mmg harus saling berbagi...",
"can_remove": true,
"created_time": "2012-01-23T15:42:19+0000"
},
{
"id": "109379672518544_32682",
"from": {
"name": "Deval Agrifarman",
"id": "896085636"
},
"message": "Dhanank Perdhana baiklah mbah aku akan jadi pejabat saja... biar punya jaguar... xixixi...\n\nAlex Zar weleh... sodara mu toh? kirain syapa :D xixixi...",
"message_tags": [
{
"id": "1243815675",
"name": "Dhanank Perdhana",
"offset": 0,
"length": 16
},
{
"id": "1378608838",
"name": "Alex Zar",
"offset": 92,
"length": 8
}
],
"can_remove": true,
"created_time": "2012-01-23T15:46:13+0000"
},
{
"id": "109379672518544_33010",
"from": {
"name": "Ali M. Fauzi",
"id": "1248947710"
},
"message": "\"Seharusnya tangan diatas lebih baik dari tangan dibawah.\" Kira2 klo kondisinya kayak gitu gmn ya? :-) :)",
"can_remove": true,
"created_time": "2012-01-23T17:11:03+0000"
},
{
"id": "109379672518544_33012",
"from": {
"name": "Ali M. Fauzi",
"id": "1248947710"
},
"message": "\"Seharusnya tangan diatas lebih baik dari tangan dibawah.\" Kira2 klo kondisinya kayak gitu gmn ya? :-) :)",
"can_remove": true,
"created_time": "2012-01-23T17:11:17+0000"
},
{
"id": "109379672518544_34880",
"from": {
"name": "Deval Agrifarman",
"id": "896085636"
},
"message": "kesannya kayak DPR sekarang... tangannya di atas tapi nyolong dari yang ada di bawah... :D wkwkwkwk...",
"can_remove": true,
"created_time": "2012-01-24T03:07:16+0000"
},
{
"id": "109379672518544_35753",
"from": {
"name": "Maruko Chan",
"id": "100001798922313"
},
"message": "LOL! iya.. hahaha",
"can_remove": true,
"created_time": "2012-01-24T09:14:24+0000"
},
{
"id": "109379672518544_38576",
"from": {
"name": "Y.i. Kusumawati",
"id": "1334087290"
},
"message": "sbenernya monyetnya yang mana",
"can_remove": true,
"created_time": "2012-01-25T00:01:56+0000"
},
{
"id": "109379672518544_39568",
"from": {
"name": "Ali M. Fauzi",
"id": "1248947710"
},
"message": "Nah.... Loh... pertanyaan bagus tuh....",
"can_remove": true,
"created_time": "2012-01-25T06:10:11+0000"
},
{
"id": "109379672518544_39665",
"from": {
"name": "Ajungo Toriyama",
"id": "1266357019"
},
"message": "Deval Agrifarman : salim dulu....sama kakak.....",
"message_tags": [
{
"id": "896085636",
"name": "Deval Agrifarman",
"offset": 0,
"length": 16
}
],
"can_remove": true,
"created_time": "2012-01-25T07:13:39+0000"
}
],
"paging": {
"next": "https://graph.facebook.com/109379672518544/comments?limit=25&method=GET&metadata=true&format=json&callback=___GraphExplorerAsyncCallback___&access_token=AAACEdEose0cBAKn8Nfv307rHgjdP9l9usbDj1KbQlzotoQDs6zuQEcxioPm73R3h1ZABBiNQyPG9iukYZAxjnxwmd6ZCNuYdkkKQ7KA4QZDZD&offset=25&__after_id=109379672518544_39665"
}
}
},
{
"id": "335701516450154",
"from": {
"name": "Deval Agrifarman",
"id": "896085636"
},
"message": "selamat tahun baru lagi yah :D sori nggak sempet bikin kartu ucapan :)",
"link": "http://www.facebook.com/photo.php?fbid=10150484907061432&set=a.170757796431.134250.152798801431&type=1",
"name": "Wall Photos",
"icon": "http://static.ak.fbcdn.net/rsrc.php/v1/yD/r/aS8ecmYRys0.gif",
"created_time": "2012-01-23T11:36:19+0000"
}
],
"paging": {
"previous": "https://graph.facebook.com/896085636/links?limit=3&format=json&since=1327590201&__paging_token=141816652602643&__previous=1",
"next": "https://graph.facebook.com/896085636/links?limit=3&format=json&until=1327318579&__paging_token=335701516450154"
}
}
what i need is for example:
getting values of 'link' from 'created_time' in january
getting values of 'message' and 'picture' plus all 'name' and 'message' inside 'comments' if there are any
I mostly use this tool http://codedestine.com/json-editor.html It has feature to add date and its drag and drop UI makes it easy to construct json. It will show you json in object view, then you can select any node and get its data and even can modify it.
If Java tools are OK, look at JSONPath, article http://goessner.net/articles/JsonPath/
Data may be interactively found and extracted out of JSON structures on the client without special scripting.
There is also JSONselect http://jsonselect.org/#tryit I have found today.
JSONSelect is an experimental selector language for JSON.
It makes it easy to access data in complex JSON documents.
It feels like CSS.
Code on GitHub https://github.com/lloyd/JSONSelect
Last updated a year ago
Related
I have a lot of data I need to parse though.
I need to pull all pid's and price's.
`
[
{
"id": 159817,
"price": "10.69",
"stocked": true,
"store": {
"id": 809,
"nsn": "22036-0",
"pricingSource": "manual",
"lastUpdated": "2022-12-05T15:24:33.908Z"
},
"sharedFields": {
"type": "PRODUCT",
"id": 24549,
"pid": "12079",
"labels": [
{
"type": "default",
"value": "Chicken Sandwich",
"locale": "en"
},
{
"type": "fresh",
"value": "Chicken",
"locale": "en"
},
{
"type": "product_json",
"value": "Chicken",
"locale": "en"
}
],
"calMin": 600,
"calMax": 600,
"lastUpdated": "2021-12-31T13:49:22.794Z"
}
},
{
"id": 159818,
"price": "9.29",
"stocked": true,
"store": {
"id": 809,
"nsn": "22036-0",
"pricingSource": "manual",
"lastUpdated": "2022-12-05T15:24:33.908Z"
},
"sharedFields": {
"type": "PRODUCT",
"id": 25,
"pid": "1",
"labels": [
{
"type": "default",
"value": "Ham Sandwich",
"locale": "en"
},
{
"type": "fresh",
"value": "Ham",
"locale": "en"
}
],
"calMin": 540,
"calMax": 540,
"lastUpdated": "2021-07-09T19:30:00.326Z"
}
}
]
`
and I need to place them into a string like this, but on a scale of 150 products. I'd also need to change "pid" to "productId"
[{ "productId": "46238", "price": 6.09 }, { "productId": "40240", "price": 1.49 }]
I need to add a string before this data, but I'm pretty confident I can figure that part out.
I am pretty open to the easiest suggestion, whether that be VBS, Excel macro, etc.
I'm trying to extract a specific value from JSON file.
the key value is: "info": "this is an example" (The key is unique)
I want to extract only the value: "this is an example"
My code:
cat 9.json | jq '.info'
result:
null
JSON file example:
{
"Event": {
"id": "13",
"orgc_id": "1",
"org_id": "1",
"date": "2019-01-09",
"threat_level_id": "3",
"info": "test9",
"published": false,
"uuid": "5c35d180",
"attribute_count": "2",
"analysis": "0",
"timestamp": "1547044733",
"distribution": "1",
"proposal_email_lock": false,
"locked": false,
"publish_timestamp": "1547034089",
"sharing_group_id": "0",
"disable_correlation": false,
"extends_uuid": "",
"event_creator_email": "o#cyhgfnt.com",
"Org": {
"id": "1",
"name": "Cygfdgfdnt",
"uuid": "5b9f938d-e3a0-4ecb-83b3-0bdeac1b41bc"
},
"Orgc": {
"id": "1",
"name": "Cyhgfgft",
"uuid": "5b9f938d-e3a0-4ecb-83b3-0bdeac1b41bc"
},
"Attribute": [{
"id": "292630",
"type": "domain",
"category": "Network activity",
"to_ids": true,
"uuid": "5c35dd94-cccc-4086-b386-682823717aa5",
"event_id": "1357",
"distribution": "5",
"timestamp": "1547034584",
"comment": "This is a comment",
"sharing_group_id": "0",
"deleted": false,
"disable_correlation": false,
"object_id": "0",
"object_relation": null,
"value": "dodskj.com",
"Galaxy": [],
"ShadowAttribute": [],
"Tag": [{
"id": "223",
"name": "kill-chain:Exploitation",
"colour": "#a80079",
"exportable": true,
"user_id": "0",
"hide_tag": false,
"numerical_value": null
}]
}, {
"id": "292631",
"type": "ip-dst",
"category": "Network activity",
"to_ids": true,
"uuid": "5c35dd94-fe90-4ef6-b3a9-682823717aa5",
"event_id": "1357",
"distribution": "5",
"timestamp": "1547044733",
"comment": "comment example",
"sharing_group_id": "0",
"deleted": false,
"disable_correlation": false,
"object_id": "0",
"object_relation": null,
"value": "8.8.6.6",
"Galaxy": [],
"ShadowAttribute": [],
"Tag": [{
"id": "247",
"name": "maec-malware-capabilities:maec-malware-capability=\"anti-removal\"",
"colour": "#3f0004",
"exportable": true,
"user_id": "0",
"hide_tag": false,
"numerical_value": null
}, {
"id": "465",
"name": "osint:lifetime=\"perpetual\"",
"colour": "#006ebe",
"exportable": true,
"user_id": "0",
"hide_tag": false,
"numerical_value": null
}]
}],
"ShadowAttribute": [],
"RelatedEvent": [],
"Galaxy": [{
"id": "3",
"uuid": "698774c7-8022-42c4-917f-8d6e4f06ada3",
"name": "Threat Actor",
"type": "threat-actor",
"description": "Threat actors are characteristics of malicious actors (or adversaries) representing a cyber attack threat including presumed intent and historically observed behaviour.",
"version": "3",
"icon": "user-secret",
"namespace": "misp",
"GalaxyCluster": [{
"id": "6397",
"collection_uuid": "7cdff317-a673-4474-84ec-4f1754947823",
"type": "threat-actor",
"value": "Sofacy",
"tag_name": "misp-galaxy:threat-actor=\"Sofacy\"",
"description": "The Sofacy Group (also known as APT28, Pawn Storm, Fancy Bear and Sednit) is a cyber espionage group believed to have ties to the Russian government. Likely operating since 2007, the group is known to target government, military, and security organizations. It has been characterized as an advanced persistent threat.",
"galaxy_id": "3",
"source": "MISP Project",
"authors": ["Alexandre Dulaunoy", "Florian Roth", "Thomas Schreck", "Timo Steffens", "Various"],
"version": "82",
"uuid": "5b4ee3ea-eee3-4c8e-8323-85ae32658754",
"tag_id": "608",
"meta": {
"cfr-suspected-state-sponsor": ["Russian Federation"],
"cfr-suspected-victims": ["Georgia", "France", "Jordan", "United States", "Hungary", "World Anti-Doping Agency", "Armenia", "Tajikistan", "Japan", "NATO", "Ukraine", "Belgium", "Pakistan", "Asia Pacific Economic Cooperation", "International Association of Athletics Federations", "Turkey", "Mongolia", "OSCE", "United Kingdom", "Germany", "Poland", "European Commission", "Afghanistan", "Kazakhstan", "China"],
"cfr-target-category": ["Government", "Military"],
"cfr-type-of-incident": ["Espionage"],
"country": ["RU"],
"refs": ["https:\/\/en.wikipedia.org\/wiki\/Sofacy_Group", "https:\/\/aptnotes.malwareconfig.com\/web\/viewer.html?file=..\/APTnotes\/2014\/apt28.pdf", "http:\/\/www.trendmicro.com\/cloud-content\/us\/pdfs\/security-intelligence\/white-papers\/wp-operation-pawn-storm.pdf", "https:\/\/www2.fireeye.com\/rs\/848-DID-242\/images\/wp-mandiant-matryoshka-mining.pdf", "https:\/\/www.crowdstrike.com\/blog\/bears-midst-intrusion-democratic-national-committee\/", "http:\/\/researchcenter.paloaltonetworks.com\/2016\/06\/unit42-new-sofacy-attacks-against-us-government-agency\/", "https:\/\/www.cfr.org\/interactive\/cyber-operations\/apt-28", "https:\/\/blogs.microsoft.com\/on-the-issues\/2018\/08\/20\/we-are-taking-new-steps-against-broadening-threats-to-democracy\/", "https:\/\/www.bleepingcomputer.com\/news\/security\/microsoft-disrupts-apt28-hacking-campaign-aimed-at-us-midterm-elections\/", "https:\/\/www.bleepingcomputer.com\/news\/security\/apt28-uses-lojax-first-uefi-rootkit-seen-in-the-wild\/"],
"synonyms": ["APT 28", "APT28", "Pawn Storm", "PawnStorm", "Fancy Bear", "Sednit", "TsarTeam", "Tsar Team", "TG-4127", "Group-4127", "STRONTIUM", "TAG_0700", "Swallowtail", "IRON TWILIGHT", "Group 74"]
}
}]
}],
"Object": [],
"Tag": [{
"id": "608",
"name": "misp-galaxy:threat-actor=\"Sofacy\"",
"colour": "#12e000",
"exportable": true,
"user_id": "0",
"hide_tag": false,
"numerical_value": null
}, {
"id": "118",
"name": "gdpr:special-categories=\"health\"",
"colour": "#3ce600",
"exportable": true,
"user_id": "0",
"hide_tag": false,
"numerical_value": null
}]
}
}
I suppose you are trying to get the .info field inside .Event which should have been written as below. Use -r for without quotes
jq '.Event.info'
I am sending the following intent creation json to DialogFlow API hook and keep getting the error "JSON syntax error". Is there a way I can get a more detailed description of the error?
{
"templates": [],
"lastUpdate": 1508084934,
"fallbackIntent": "false",
"name": "address-intent",
"contexts": [
"order-intent-order-done-confirm-followup"
],
"auto": "true",
"webhookUsed": "true",
"events": [],
"priority": 500000,
"userSays": [
{
"count": 0,
"isTemplate": "false",
"data": [
{
"text": "deliver to ",
"userDefined": "false"
},
{
"text": "washington square",
"meta": "#sys.address",
"userDefined": "false",
"alias": "address"
}
]
},
{
"count": 0,
"isTemplate": "false",
"data": [
{
"text": "please deliver it to ",
"userDefined": "false"
},
{
"text": "washington square",
"meta": "#sys.address",
"userDefined": "false",
"alias": "address"
}
]
},
{
"count": 0,
"isTemplate": "false",
"data": [
{
"text": "34 1st street",
"meta": "#sys.address",
"userDefined": "false",
"alias": "address"
}
]
},
{
"count": 0,
"isTemplate": "false",
"data": [
{
"text": "deliver it to ",
"userDefined": "false"
},
{
"text": "washington square",
"meta": "#sys.address",
"userDefined": "false",
"alias": "address"
}
]
}
],
"webhookForSlotFilling": "false",
"responses": [
{
"affectedContexts": [
{
"name": "address-intent-followup",
"parameters": {},
"lifespan": 1
}
],
"parameters": [
{
"name": "address",
"dataType": "#sys.address",
"required": "true",
"value": "$address",
"prompts": [
{
"lang": "en",
"value": "What's the address for the delivery?"
},
{
"lang": "en",
"value": "Where should we send the order to?"
},
{
"lang": "en",
"value": "What's your address?"
}
],
"isList": "false"
}
],
"messages": [
{
"lang": "en",
"speech": [],
"type": 0
}
],
"defaultResponsePlatforms": {},
"action": "address-intent",
"speech": [],
"resetContexts": "false"
}
]
}
To be clear, other intent creation requests work (as well as get requests) so I am pretty sure something in my JSON is wrong. The JSON is a valid JSON (validated here)
It was the prompts collection.
It should have been a list of strings and not of objects.
A decent error message would have been nice.
The JSON you've provided is the JSON that Dialogflow will send to your webhook in the body of the request to your webhook. To respond to your users you must respond to this request with a response that looks like this:
Headers:
Content-type: application/json
Body:
{
"speech": "Barack Hussein Obama II was the 44th and current President of the United States.",
"displayText": "Barack Hussein Obama II was the 44th and current President of the United States, and the first African American to hold the office. Born in Honolulu, Hawaii, Obama is a graduate of Columbia University and Harvard Law School, where ",
"data": {...},
"contextOut": [...],
"source": "..."
}
the data, contextOut and source attributes are optional. speech and displayText are required and correspond to what is spoken and displayed to the user respectively.
The json below is the response I get from the server for requesting /id/albums, but I want to use that data to get the link to the album that has all the pictures in json format. The "link" field provided is to the actual desktop site, but I need the json. How would I use the json data provided (below) to send a request to graph.facebook.com to get the pictures within the corresponding album in json format?
{
"data": [
{
"id": "150228731810007",
"from": {
"name": "James McMahon",
"id": "100004686423103"
},
"name": "Profile Pictures",
"link": "https://www.facebook.com/album.php?fbid=150228731810007&id=100004686423103&aid=1073741831",
"cover_photo": "150228735143340",
"count": 2,
"type": "profile",
"created_time": "2013-03-15T05:29:24+0000",
"updated_time": "2013-11-09T17:12:36+0000",
"can_upload": false
},
{
"id": "233767233456156",
"from": {
"name": "James McMahon",
"id": "100004686423103"
},
"name": "Mobile Uploads",
"link": "https://www.facebook.com/album.php?fbid=233767233456156&id=100004686423103&aid=1073741838",
"type": "mobile",
"created_time": "2013-11-09T17:12:30+0000",
"updated_time": "2013-11-09T17:12:30+0000",
"can_upload": false
},
{
"id": "206255352874011",
"from": {
"name": "James McMahon",
"id": "100004686423103"
},
"name": "Aug. 17th, 2013",
"description": "Day with some of the Family",
"link": "https://www.facebook.com/album.php?fbid=206255352874011&id=100004686423103&aid=1073741837",
"cover_photo": "206255402874006",
"count": 8,
"type": "normal",
"created_time": "2013-08-17T21:24:12+0000",
"updated_time": "2013-08-17T21:24:36+0000",
"can_upload": false,
"likes": {
"data": [
{
"id": "1774907390",
"name": "Ashley Carter"
},
{
"id": "646440613",
"name": "Mitzy Lanthier"
},
{
"id": "1801948293",
"name": "Calvin Carter"
},
{
"id": "100000653918655",
"name": "Kimberly Lane Lirette"
}
],
"paging": {
"cursors": {
"after": "MTAwMDAwNjUzOTE4NjU1",
"before": "MTc3NDkwNzM5MA=="
}
}
}
},
{
"id": "150230918476455",
"from": {
"name": "James McMahon",
"id": "100004686423103"
},
"name": "Cover Photos",
"link": "https://www.facebook.com/album.php?fbid=150230918476455&id=100004686423103&aid=1073741833",
"cover_photo": "202581716574708",
"count": 4,
"type": "cover",
"created_time": "2013-03-15T05:43:31+0000",
"updated_time": "2013-08-08T17:26:35+0000",
"can_upload": false
},
{
"id": "158017154364498",
"from": {
"name": "James McMahon",
"id": "100004686423103"
},
"name": "Timeline Photos",
"link": "https://www.facebook.com/album.php?fbid=158017154364498&id=100004686423103&aid=1073741834",
"cover_photo": "179650435534503",
"count": 10,
"type": "wall",
"created_time": "2013-04-07T14:04:04+0000",
"updated_time": "2013-06-12T23:28:45+0000",
"can_upload": false
},
{
"id": "178309025668644",
"from": {
"name": "James McMahon",
"id": "100004686423103"
},
"name": "U.S.Navy D.E.P.",
"description": "Was a pretty fun day. We were out there helping restore this World War 2 Destroyer.",
"link": "https://www.facebook.com/album.php?fbid=178309025668644&id=100004686423103&aid=1073741835",
"cover_photo": "178309055668641",
"count": 4,
"type": "normal",
"created_time": "2013-06-10T00:32:45+0000",
"updated_time": "2013-06-10T00:33:49+0000",
"can_upload": false,
"likes": {
"data": [
{
"id": "100000651398529",
"name": "Jennifer Manuel Hyatt"
},
{
"id": "1801948293",
"name": "Calvin Carter"
},
{
"id": "1522740127",
"name": "Bliss Reane Kinder"
}
],
"paging": {
"cursors": {
"after": "MTUyMjc0MDEyNw==",
"before": "MTAwMDAwNjUxMzk4NTI5"
}
}
}
},
{
"id": "150228468476700",
"from": {
"name": "James McMahon",
"id": "100004686423103"
},
"name": "Untitled Album",
"description": "03112013",
"link": "https://www.facebook.com/album.php?fbid=150228468476700&id=100004686423103&aid=1073741830",
"cover_photo": "150228475143366",
"count": 1,
"type": "normal",
"created_time": "2013-03-15T05:27:54+0000",
"updated_time": "2013-03-15T05:28:17+0000",
"can_upload": false
}
],
"paging": {
"cursors": {
"after": "MTUwMjI4NDY4NDc2NzAw",
"before": "MTUwMjI4NzMxODEwMDA3"
}
}
}
Response received in 237 ms
You have the id field- that's the album-id
So, you can create the link by yourself, just like this-
https://graph.facebook.com/<ALBUM-ID>/photos
from this you can fetch all the photos of a particular album (but remember that you'll need the access token- of-course)
https://graph.facebook.com/<ALBUM-ID>/photos?access_token=<ACCESS-TOKEN>
I wont to get the best comment of a page
more like
more old
from:
https://graph.facebook.com/comments/?ids=[YOUR PAGE]
i get this result:
{"[YOUR PAGE]": {
"comments": {
"data": [
{
"id": "10150129443959608_15887865",
"from": {
"name": "Trent Seed",
"id": "614130500"
},
"message": "that house is huge!!",
"created_time": "2011-04-13T10:00:44+0000"
},
{
"id": "10150129443959608_15902791",
"from": {
"name": "Mitch Seed",
"id": "688036079"
},
"message": "wtf this is ridiculous! I cant believe this is actually right by us.",
"created_time": "2011-04-14T02:17:18+0000",
"comments": {
"data": [
{
"id": "10150155952624608",
"from": {
"name": "Ethan Ming",
"id": "592969356"
},
"message": "where does all that flat land come from in los altos HILLS? oh i guess that $100 million also went to removing a small mountain too",
"created_time": "2011-04-14T02:43:57+0000"
},
{
"id": "10150155954519608",
"from": {
"name": "Mitch Seed",
"id": "688036079"
},
"message": "yeah haha thats just straight ridiculous i have ran all through los altos hills i dont remember any land like this haha",
"created_time": "2011-04-14T02:46:40+0000"
},
{
"id": "10150155969784608",
"from": {
"name": "Leila Marie",
"id": "1044030343"
},
"message": "jus copied you haha this is crazy",
"created_time": "2011-04-14T03:13:07+0000"
}
],
"count": 3
}
},
{
"id": "10150129443959608_15932966",
"from": {
"name": "Arthur Lozinski",
"id": "1044030063"
},
"message": "digital sky technologies. remember that name :-D",
"created_time": "2011-04-15T15:42:23+0000"
},
{
"id": "10150129443959608_15962947",
"from": {
"name": "Brian Sator",
"id": "513517991"
},
"message": "I feel like I would get lost in that place.",
"created_time": "2011-04-17T08:03:24+0000",
"likes": 1
},
{
"id": "10150129443959608_16282803",
"from": {
"name": "Jordan McDaniel",
"id": "506352386"
},
"message": "holy shit",
"created_time": "2011-05-04T04:29:27+0000",
"comments": {
"data": [
{
"id": "10150172606879608",
"from": {
"name": "Davey Nicholas",
"id": "1346961549"
},
"message": "\"no plans to move into the mansion\" whos' tryina squat",
"created_time": "2011-05-04T04:35:16+0000"
}
],
"count": 1
}
}
],
"paging": {
"next": "[link]"
}
}
}
}
i wont to get the best message of the json file (or is possible in other way?)
try fql
SELECT id,text,likes FROM comment WHERE object_id=[page_id] order by likes desc
with graphs
https://graph.facebook.com/fql=SELECT+id,text,likes+FROM+comment+WHERE+object_id=[page_id]+order+by+likes+desc
see more about fql