Questions tagged [json]
The json tag has no summary.
44 questions
1 vote
0 answers
23 views
To sort key-value pairs (even nested key-value pairs) in Emacs in a JSON file - SOLVED
Is it possible to sort key-value pairs (even nested key-value pairs) in Emacs version 28.2 in a JSON file by key name in ascending order, while also taking into account the case of the first letters ...
2 votes
3 answers
299 views
How to convert an org-table to JSON?
Here is a minimal example of an org-table: #+NAME: radar |----------+------| | Variable | Val | |----------+------| | Red | 43.3 | | Blue | 83.1 | | Yellow | 86.4 | |----------+------| I ...
0 votes
0 answers
54 views
Emacs copy JSON Value
For a JSON block, is there any way to extract the value with a simple keybinding?;) For example, the function should return foo:bar "hukarz": "foo:bar",
0 votes
2 answers
588 views
Regex to find and replace a specific character inside of multiple quoted strings in a string
Given an example string of JSON (formatted here for reading, actual input may or may not be formatted): { "page":1, "per_page":6, "total":12, "...
1 vote
2 answers
830 views
How to read JSON file in emacs and display it in the scratch buffers?
I've a json data returned by endpoint which is as below: { "id":"1383", "entryPoint":"Stranger in the night.", "Source":"music" } What I ...
0 votes
1 answer
306 views
LSP: Bad JSON object: ":", 97
I am using gccemacs, where emacs is build with --with-native-compilation configuration option. After compilation is done,when I run M-x lsp: I start to have following error: Bad JSON object: ":&...
3 votes
1 answer
540 views
How do i create a nested list from a json data?
From JSON, I'm trying to build a nested list of nodes which should look like the expected result below: (html (head (meta title)) (body (ul (div) (div) (div))) ; I guess this is the right approach for ...
0 votes
3 answers
161 views
Why am I getting this error, saying that a comma is not a function?
In a related thread https://emacs.stackexchange.com/a/34336/2287, a string (containing JSON data) is converted using json-read-from-string. The value returned in that example looks like this: ((1 ...