Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Does anybody want a tool to turn raw data (web-scraped or anything) into JSON?. Parent comment
Example Data: John is 25 years old and studies computer science at university. His address is 123 Main St, Anytown 12345
Format that you want will look something like this,
{ "format": { "name": { "type": "string" }, "age": { "type": "number" }, "isStudent": { "type": "boolean" }, "courses": { "type": "array", "items": { "type": "string" } }, "address": { "type": "object", "properties": { "street": { "type": "string" }, "city": { "type": "string" }, "zipcode": { "type": "string" } } } } }
------
Output,
{ "name": "John", "age": 25, "isStudent": true, "courses": ["computer science"], "address": { "properties": { "street": "123 Main St", "city": "Anytown", "zipcode": "12345" } } }
There are no comments on this comment yet.
Example Data: John is 25 years old and studies computer science at university. His address is 123 Main St, Anytown 12345
Format that you want will look something like this,
{ "format": { "name": { "type": "string" }, "age": { "type": "number" }, "isStudent": { "type": "boolean" }, "courses": { "type": "array", "items": { "type": "string" } }, "address": { "type": "object", "properties": { "street": { "type": "string" }, "city": { "type": "string" }, "zipcode": { "type": "string" } } } } }
------
Output,
{ "name": "John", "age": 25, "isStudent": true, "courses": ["computer science"], "address": { "properties": { "street": "123 Main St", "city": "Anytown", "zipcode": "12345" } } }