JSON string rotation
Right value strings are misplaced. Just rotate them! I'm too kind with you guys and didn't included "strings with \" in it"!
Start file
{
"name" : "y64zqe0UKLO2w",
"id": "Le mal vient à cheval et le bonheur à pied.",
"proverb" : "fr",
"lang":"http:\/\/foo.com\/good\/id=",
"rating": 4.5,
"link" : "",
"status": {"success":true},
"description": "Happiness and misfortune"
}
End file
{
"name" : "Happiness and misfortune",
"id": "y64zqe0UKLO2w",
"proverb" : "Le mal vient à cheval et le bonheur à pied.",
"lang":"fr",
"rating": 4.5,
"link" : "http:\/\/foo.com\/good\/id=",
"status": {"success":true},
"description": ""
}
View Diff
2,5c2,5
< "name" : "y64zqe0UKLO2w",
< "id": "Le mal vient à cheval et le bonheur à pied.",
< "proverb" : "fr",
< "lang":"http:\/\/foo.com\/good\/id=",
---
> "name" : "Happiness and misfortune",
> "id": "y64zqe0UKLO2w",
> "proverb" : "Le mal vient à cheval et le bonheur à pied.",
> "lang":"fr",
7c7
< "link" : "",
---
> "link" : "http:\/\/foo.com\/good\/id=",
9c9
< "description": "Happiness and misfortune"
---
> "description": ""
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 21 remaining solutions by signing in and submitting your own entry