Questions tagged [json]
JSON (JavaScript Object Notation) aka the Fat Free Alternative to XML is a lightweight data exchange format inspired by JavaScript object literals. It is often used with JavaScript, Ajax, and RESTful web services but is completely language independent.
872 questions
0
votes
0
answers
11
views
Json Flex/Bison parser
Code: https://github.com/Loki-Astari/Puzzle/tree/master/JSON-2
Challenge: https://codingchallenges.fyi/challenges/challenge-json-parser
json.l
...
1
vote
1
answer
27
views
JSON Parser recursive desent
Code: https://github.com/Loki-Astari/Puzzle/tree/master/JSON-1
From Challenge: https://codingchallenges.fyi/challenges/challenge-json-parser
json1.cpp
...
7
votes
2
answers
885
views
JSON Parser in C++
I wrote a JSON parser for a coding challenge: https://codingchallenges.fyi/challenges/challenge-json-parser
It's a recursive descent parser that just tells whether the JSON string is of proper syntax.
...
6
votes
2
answers
358
views
Serialization Extension
In a previous review, there was a request to simplify code that looked like this:
...
-2
votes
1
answer
146
views
Go response JSON unmarshalling [closed]
Pprof Profiling Snapshot
I have a critical user facing Go API in which I call an internal API. The API response time is <200ms but the response unmarshalling with goccy JSON is taking 500ms. The ...
7
votes
1
answer
789
views
JSON powered C++ CLI Engine
I decided to create cli(s) in C++. For instance a music player which will play music from my library via commands player play muse or ...
6
votes
1
answer
186
views
Dynamic image gallery with filters pulling from a JSON file
I have an image gallery of old internet banner ads that pulls URLs and metadata from a JSON file and then displays them based on a set of user-selectable filters. The filters can show/exclude images ...
4
votes
2
answers
159
views
Managing file paths in a python Data Science project
When doing Data Science projects, I often have to load data and metadata, and output results, plots, logs, etc.
Therefore I have to handle all the file paths from where to load the input and write the ...
5
votes
2
answers
123
views
Accessing and editing a database in python using JSON
I am a beginner programmer and have recently started learning python. I wrote this code as a little project to understand dictionaries better and ended up having to learn to use JSON. I am self-taught,...
7
votes
1
answer
133
views
Recursive descent JSON parser in Rust
I've written a simple recursive descent JSON parser in Rust. It just reads in a JSON file and prints the syntax tree to the terminal. I'm still learning Rust, and I'd appreciate any review/feedback. ...
3
votes
2
answers
145
views
Convert environment variables (from linux env cmd) to json (supporting nestedness) in plain F#
I stumbled across something a long while ago, fetching the environments variables from say env under linux (say on a pod via argos), anyway, point is I could fetch ...
2
votes
0
answers
64
views
Redact specific elements from JSON (for logging)
We need to implement a simple redaction function to redact (set to undefined) certain JSON elements when logging the JSON. The requirements are:
We can't modify the current JSON object, as that ...
5
votes
2
answers
395
views
Simple JSON parser in lisp
A simple recursive descent JSON parser. The entrypoint to the code is the parse function. Since I'm pretty new to common lisp, I wanted to get feedback on how to ...
-2
votes
1
answer
119
views
Initializing an object using a staticmethod
I've an object that looks like this, and users have been populating the attributes post-initialization, e.g.
...
6
votes
2
answers
726
views
What is the best way to set a class value to a variable in Python if it exists in a dictionary?
I have this code which sets values in a location class from values from JSON data.
...