I have a json file. If I run clang-format on it, it formats it as though it's code (ugly).
{
"name" : "My great app",
"description" : "It's really cool.",
"version" : "0.0.1"
}
If I put 'foo = ' at the start of the file, it's great, but it's not json anymore.
foo = {
"name" : "My great app",
"description" : "It's really cool.",
"version" : "0.0.1"
}
How can I get clang-format to format the bare object in the json file as in the second example?