|
| 1 | +module SampleJson exposing (..) |
| 2 | + |
| 3 | + |
| 4 | +todosString : String |
| 5 | +todosString = |
| 6 | + """ |
| 7 | + { |
| 8 | + "data": { |
| 9 | + "todos": [ |
| 10 | + { "task": "Clean room", "urgent": false, "completed": false }, |
| 11 | + { "task": "Get food", "urgent": true, "completed": false }, |
| 12 | + { "task": "Learn JavaScript", "urgent": false, "completed": true }, |
| 13 | + { "task": "Finish CV", "urgent": false, "completed": false } |
| 14 | + ] |
| 15 | + } |
| 16 | + } |
| 17 | +""" |
| 18 | + |
| 19 | + |
| 20 | +deeplyNestedString : String |
| 21 | +deeplyNestedString = |
| 22 | + """ |
| 23 | + { |
| 24 | + "key1": { |
| 25 | + "key2": { |
| 26 | + "key3": { |
| 27 | + "key4": "help me I'm buried away!" |
| 28 | + }, |
| 29 | + "key5": "save me too!" |
| 30 | + } |
| 31 | + }, |
| 32 | + "list_of_numbers": [ 120, 23, 45, 96, 5 ] |
| 33 | + } |
| 34 | +""" |
| 35 | + |
| 36 | + |
| 37 | +guardianApiString : String |
| 38 | +guardianApiString = |
| 39 | + """ |
| 40 | + { |
| 41 | + "response": { |
| 42 | + "status": "ok", |
| 43 | + "total": 13724, |
| 44 | + "startIndex": 1, |
| 45 | + "pageSize": 10, |
| 46 | + "currentPage": 1, |
| 47 | + "pages": 1373, |
| 48 | + "orderBy": "relevance", |
| 49 | + "results": [ |
| 50 | + { |
| 51 | + "id": "lifeandstyle/2017/aug/08/share-your-underwhelming-pictures-of-cats", |
| 52 | + "type": "article", |
| 53 | + "sectionId": "lifeandstyle", |
| 54 | + "sectionName": "Life and style", |
| 55 | + "webPublicationDate": "2017-08-08T11:09:15Z", |
| 56 | + "webTitle": "Share your underwhelming pictures of cats", |
| 57 | + "webUrl": "https://www.theguardian.com/lifeandstyle/2017/aug/08/share-your-underwhelming-pictures-of-cats", |
| 58 | + "apiUrl": "https://content.guardianapis.com/lifeandstyle/2017/aug/08/share-your-underwhelming-pictures-of-cats", |
| 59 | + "isHosted": false |
| 60 | + }, |
| 61 | + { |
| 62 | + "id": "lifeandstyle/2017/may/05/experience-my-dog-rescues-cats", |
| 63 | + "type": "article", |
| 64 | + "sectionId": "lifeandstyle", |
| 65 | + "sectionName": "Life and style", |
| 66 | + "webPublicationDate": "2017-05-05T13:00:34Z", |
| 67 | + "webTitle": "Experience: my dog rescues cats", |
| 68 | + "webUrl": "https://www.theguardian.com/lifeandstyle/2017/may/05/experience-my-dog-rescues-cats", |
| 69 | + "apiUrl": "https://content.guardianapis.com/lifeandstyle/2017/may/05/experience-my-dog-rescues-cats", |
| 70 | + "isHosted": false |
| 71 | + }, |
| 72 | + { |
| 73 | + "id": "environment/commentisfree/2017/jul/11/cats-dogs-caterpillars-pets-butterflies", |
| 74 | + "type": "article", |
| 75 | + "sectionId": "environment", |
| 76 | + "sectionName": "Environment", |
| 77 | + "webPublicationDate": "2017-07-11T07:00:03Z", |
| 78 | + "webTitle": "Forget cats and dogs – caterpillars make the best pets | Patrick Barkham", |
| 79 | + "webUrl": "https://www.theguardian.com/environment/commentisfree/2017/jul/11/cats-dogs-caterpillars-pets-butterflies", |
| 80 | + "apiUrl": "https://content.guardianapis.com/environment/commentisfree/2017/jul/11/cats-dogs-caterpillars-pets-butterflies", |
| 81 | + "isHosted": false |
| 82 | + }, |
| 83 | + { |
| 84 | + "id": "film/2017/jun/29/kedi-review-street-cats-of-istanbul-documentary-ceyda-torun", |
| 85 | + "type": "article", |
| 86 | + "sectionId": "film", |
| 87 | + "sectionName": "Film", |
| 88 | + "webPublicationDate": "2017-06-29T11:00:21Z", |
| 89 | + "webTitle": "Kedi review – slinking around with the street cats of Istanbul", |
| 90 | + "webUrl": "https://www.theguardian.com/film/2017/jun/29/kedi-review-street-cats-of-istanbul-documentary-ceyda-torun", |
| 91 | + "apiUrl": "https://content.guardianapis.com/film/2017/jun/29/kedi-review-street-cats-of-istanbul-documentary-ceyda-torun", |
| 92 | + "isHosted": false |
| 93 | + }, |
| 94 | + { |
| 95 | + "id": "artanddesign/2017/sep/25/turner-prize-2017-exhibition-review-a-snake-infested-garden-and-fat-cats-on-horseback", |
| 96 | + "type": "article", |
| 97 | + "sectionId": "artanddesign", |
| 98 | + "sectionName": "Art and design", |
| 99 | + "webPublicationDate": "2017-09-25T17:22:56Z", |
| 100 | + "webTitle": "Turner prize 2017 exhibition review: a snake-infested garden and fat cats on horseback", |
| 101 | + "webUrl": "https://www.theguardian.com/artanddesign/2017/sep/25/turner-prize-2017-exhibition-review-a-snake-infested-garden-and-fat-cats-on-horseback", |
| 102 | + "apiUrl": "https://content.guardianapis.com/artanddesign/2017/sep/25/turner-prize-2017-exhibition-review-a-snake-infested-garden-and-fat-cats-on-horseback", |
| 103 | + "isHosted": false |
| 104 | + }, |
| 105 | + { |
| 106 | + "id": "music/2017/may/29/english-national-opera-the-day-after-review-jonathan-dove", |
| 107 | + "type": "article", |
| 108 | + "sectionId": "music", |
| 109 | + "sectionName": "Music", |
| 110 | + "webPublicationDate": "2017-05-29T13:09:38Z", |
| 111 | + "webTitle": "The Day After review – devastation, dead cats and godlike grandeur", |
| 112 | + "webUrl": "https://www.theguardian.com/music/2017/may/29/english-national-opera-the-day-after-review-jonathan-dove", |
| 113 | + "apiUrl": "https://content.guardianapis.com/music/2017/may/29/english-national-opera-the-day-after-review-jonathan-dove", |
| 114 | + "isHosted": false |
| 115 | + } |
| 116 | + ] |
| 117 | + } |
| 118 | + } |
| 119 | +""" |
0 commit comments