Questions tagged [json-format]
JSON (JavaScript Object Notation) is a lightweight data-interchange format. The Stackexchange API delivers its data using this format. The tag is meant for questions about reading and interpreting JSON.
80 questions
1
vote
1
answer
361
views
How to convert Mathematica Notebook (.nb) to VS Code Wolfram extension JSON format (ignoring output) using Wolfram Language?
I'm trying to convert Mathematica notebooks (.nb files) into the specific JSON-based notebook format used by Visual Studio Code extensions for Wolfram Language. I would like a procedure written in the ...
4
votes
1
answer
397
views
Mathematica frequently fails to import seemingly valid JSON
When importing JSON through APIs using Import[endpoint,"JSON"], Import[endpoint,"RawJSON"], or ...
6
votes
3
answers
384
views
How can I visualize OpenAPI JSON schemas in Mathematica?
Question
I’m working with an OpenAPI JSON schema and want to visualize and understand its structure using Mathematica. For example, given the following schema:
...
5
votes
1
answer
370
views
GeoJSON Problems - UK Parliamentary Constituencies
I want to plot the new parliamentary boundaries for the upcoming general election.
This will use an NIHR API to grab the map location of the FID=3, the 3rd parliamentary constituency in alphabetical ...
5
votes
1
answer
361
views
Making Adjacency Matrix from Maps
I want to make an adjacency matrix for the world/each country at a specified administrative level. This is very easy to do for countries in Mathematica, but is not straightforward for different ...
5
votes
2
answers
188
views
How to export a correct .json file [closed]
This is my current code:
...
1
vote
1
answer
185
views
Convert CSV to JSON
I'd like to convert some csv data to json.
The CSV:
...
6
votes
1
answer
271
views
Exporting results containing Entities to JSON?
I am looking for a straightforward way to export results from functions like ImageContents, FacialFeatures, and WolframAlpha - symbols that return stuff containing knowledgebase content.
Aside from ...
0
votes
2
answers
259
views
How to create a Dataset from Nested JSON Data?
I'm importing data from Swarm into Mathematica, and I'm trying to create a dataset and having issues because the values are at different levels:
...
3
votes
1
answer
2k
views
How can I resolve an unexpected character error when trying to import selected data from a large JSON file?
I'm downloading this datafile from kaggle.
I want to get all the IDs.
Normally for a JSON file I'd write
...
0
votes
1
answer
696
views
Converting JSON to CSV but the formatting is not correct
I have a folder of about a million JSON files and I wrote this to convert them quickly to CSV, but the formatting is not correct for the software I'm feeding them into.
Here's the code I'm using:
<...
0
votes
0
answers
53
views
FaceFeatures - How to better customise the details of JSON output file?
I am using FacialFeatures to identify the age and gender of characters in movie frames.
I am using the following script (simplified from this source):
...
6
votes
0
answers
708
views
Lists of rules vs. Associations
It seems that generally, Mathematica users (or at least the Q&A I've read here) prefer associations to represent data in ways that many other languages would use structures.
However, when ...
0
votes
0
answers
62
views
How to specify authenticity of SSL for querying APIs?
While ago I was using this command with no issue, now I have an SSL error:
...
4
votes
2
answers
374
views
How to export a list of url strings as a json file?
I want to export a list of url's as a JSON file.
For instance:
...