Skip to main content

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.

-2 votes
1 answer
129 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 ...
user avatar
7 votes
1 answer
776 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 ...
Hrant Nurijanyan's user avatar
0 votes
0 answers
112 views

Custom JSON Model Binder for deserialization with Newtonsoft JSON in ASP.NET MVC 5

I wrote this to have ASP.NET MVC be able to respond as a web API as well as the normal MVC Razor pages. I wanted Newtonsoft deserialization for models based on already parsed values: ...
MPelletier's user avatar
6 votes
1 answer
161 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 ...
fish's user avatar
  • 160
4 votes
2 answers
147 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 ...
Alessandro Cesa's user avatar
5 votes
2 answers
114 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,...
Nav's user avatar
  • 53
7 votes
1 answer
124 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. ...
Brendan Wilson's user avatar
3 votes
2 answers
137 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 ...
Natalie Perret's user avatar
2 votes
0 answers
58 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 ...
lincolnadym's user avatar
5 votes
2 answers
374 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 ...
zoravur's user avatar
  • 51
-2 votes
1 answer
115 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. ...
alvas's user avatar
  • 709
6 votes
2 answers
720 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. ...
Asher Ross's user avatar
7 votes
4 answers
807 views

JSON data format for MCQ data bank

I'm creating a data bank of MCQ (Multi Choice Questions) and their answers so that an app can be built around it. Regarding the actual storage format, I have two ideas: An array of objects with keys (...
Prahlad Yeri's user avatar
2 votes
1 answer
101 views

Feedback for my first project - sqlserver-json-tools

could you review my first project on github please. The JSON_MODIFY function in SQL Server 2016 and 2019 does not allow creating paths dynamically, making it necessary to chain JSON_MODIFY executions. ...
Renato Magalhães's user avatar
4 votes
1 answer
265 views

JSON4 parser in Typescript - Optimized

Context This review-request is a follow-up to this question. After the initial implementation, which focused on spec-compliance mainly, I have made some revisions to improve the performance of the ...
Patrick Hollweck's user avatar

15 30 50 per page
1
2 3 4 5
58