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.

learn more… | top users | synonyms

2
votes
1answer
50 views

Simple Python script to sort and make json data unique

I'm retrieving e-mails from a collection of a few hundred *.json files using the following: Python Script ...
1
vote
1answer
49 views

Downloading yahoo finance stock historical data as CSV using C++

This post is a continuation of my previous post where I used jsoncpp package to fetch exchange rates from fixer.io. In this post I have reused the above code and used it to fetch stock historical ...
3
votes
1answer
40 views

Fetching specific foreign exchange rates from fixer using curl and jsconcpp in C++

I am trying to create my own algorithmic trading system using C++. I have searched the web for a nice tutorial for such systems and I didnt find any. Then I started to learn about ...
0
votes
1answer
34 views

JavaScript to parse json that can be, string, object and array

I have to parse a json object that can be a string, array, array of strings and array of object. I realised that it's not good from the beginning that one object can be many types, but I can't change ...
1
vote
1answer
49 views

Interpreting the time

EDIT: Alternate answer on overflow: http://stackoverflow.com/questions/38487692/how-can-i-interpret-the-time-with-less-code/38492144#38492144 But I really want to keep Jonah's answer here too. Just ...
1
vote
1answer
52 views

Java password encryption based on time and string

I have a program that: Takes a user specified string Creates password from the string and previous, current, and next day Encrypts the strings Chops some middle characters from the strings (needed ...
1
vote
0answers
27 views

Correct Swift Model for JSON

I am working on a program that would generate swift classes/ structures for JSON file contents. The link to the application is Json2Model in case you want to contribute directly. I do not know a ...
1
vote
2answers
39 views

Postman collection parser which injects collection to Jira/xray addon

I'we created an interface that communicates with Postman collection and Jira api more precise the Xray addon for jira. I would much appreciate if you could give me notes on how to improve this code. ...
2
votes
1answer
51 views

Calling TWITCH API and displaying online/offline users of a channel

I've got this working almost to where I want it. The part I can't get right may be due to the programming so I'd like to get a review. I'm making JSON calls to ...
-1
votes
0answers
22 views

Annotating a JSON extending to JSON-LD

I am relatively new to extending regular JSON to JSON-LD. I am currently working on a project where our Mongo collections will be available as open data. At the same time I want to add semantic ...
3
votes
0answers
30 views

xkcd comics data provider

Please help me improving this code(golang), thanks! Why I need built a API for xkcd Can't get the data provided by xkcd directly in front-end(CORS). So we can package the data to 10 comics per ...
2
votes
2answers
43 views

Retrieve data from json file and avoid HTML/JS tight coupling

I am retrieving data from a json object and even though code works I am not sure if I am following best practices. In particular some of the objects seems too deep (like value.metadata.connections....
0
votes
0answers
15 views

Spark Code for doing SQL Operations on a/ multiple JSON files

Input is one or many json files to run a query and print the result. I have tried both Collect and saveAsTextFile but both are slow and would appreciate suggestions to help speed things up. Here is ...
-2
votes
0answers
50 views

Evaluation of SOAP and REST based code for Expressitivity

Currently I am doing a project for my Master's thesis and have to evaluate web service standards for Web of Things applications(Real-time Patient Monitoring System). Below is code I have written in ...
0
votes
1answer
55 views

Pretify JSON class -followup

This is a follow up to this question. This is an improved version in accordance to comments, suggestions and reviews. Is the namespace implementation proper? is the code readable? I didn't want to ...
9
votes
3answers
1k views

Prettify JSON class

It's not much, but I tried employing some of the things I learned yet never really got to use, since that kind of code isn't really needed where I work (for the most part). I tried making it as much C+...
2
votes
1answer
38 views

Create JSON file from WordPress ACF options

I am using a WordPress multisite network and want to pull information from options pages in Advanced Custom Fields to create a json file. I currently have this code running whenever an options field ...
2
votes
1answer
24 views

An interesting use of the reduce function to convert tab-delimited data into JSON

I am learning functional programming in JavaScript. This is some code from a video tutorial by funfunfunction. I am particularly concerned about the way the existence of the customer key is checked in ...
3
votes
1answer
66 views

Converting embedded JSON into flat table

I am new Python user, who decided to use Python to create simple application that allows for converting json files into flat table and saving the output in cvs format. I was wondering if you could ...
6
votes
1answer
104 views

Excel VBA to parse JSON out of Google Maps API

Some code that I wrote and broke into 5 separate questions on stack overflow. Some guy wanted to query Google Maps receive some JSON and then for each result found within that JSON do another query. ...
4
votes
2answers
192 views

Script to print weather report from OpenWeatherMap API

This script prints the weather (fetching the information from a public API). If anyone could review my code and answer my question about code structure and how should I code in the right way, I ...
1
vote
1answer
34 views

Foldify - A Python Folder Tree Manager Tool

The goal was to create a tool to help manage folders structures, and allow me to create templates of this folders and store them as a JSON template. The following functionalities have been implemented:...
10
votes
2answers
693 views

JSON Parsing in Bash

I have a json file which needs to be restructured. The following is the code. ...
1
vote
1answer
34 views

`new Function` for json reference

I have JSON with references to other parts in that JSON file. ...
4
votes
2answers
154 views

ToDoApp with persistence (using JSON)

This is a simple ToDoApp with a CLI that is made useful by adding persistence. A shout out to @Phrancis and @syb0rg for guiding this little project to where it is now. The structure is rather simple. ...
0
votes
1answer
33 views

Condense JSON for bandwidth efficiency

JSON is quickly becoming the formatting standard of choice for quick, convenient, and reliable machine to machine communications. It is flexible and widely supported but it has some drawbacks when it ...
0
votes
0answers
24 views

Merging JSON objects

I have 2 JSON structures. Input: ...
0
votes
0answers
30 views

Three functions to make a JSON array

Currently I'm using these three functions, that in the end produces a JSON array. I went this way so that I could fetch data from a specific table. But now it just seems bloated and poorly written, ...
1
vote
2answers
58 views

Grab photos from Flickr

I wrote the following code for a coding challenge I was given and it received the following criticism: it was quite a beginner attempt using Angular. ...
3
votes
1answer
62 views

Generating jQuery mobile “pages” dynamically

I'm doing a college assignment with jQuery Mobile and JSON. Best practice with jQuery mobile is my main concern. My html starts off with a main 'page' (data-role="page") inside a div with id="all-...
2
votes
1answer
116 views

Getting JSON data from an HTTP response using conditional binding

I am new to Swift and I am trying to use the optional binding feature in as efficient way as possible but I am a bit confused on how to use it (if I can) in this scenario: ...
2
votes
2answers
76 views

Program to edit an address book stored as a JSON file

I was told to come here from Stack Overflow. I'm trying my hand at an address book and the goal is for it to have a bit more of error prevention, for instance for the key "phone" to have 10 digits, ...
0
votes
1answer
57 views

JSON Writer (PHP)

I have written a simple PHP Script that takes $_POST input and uses it to add data to a .json file. Given the security flaws in ...
0
votes
2answers
92 views

Currency converter in Python 2.7

I'm a beginner and it is my first project in Python 2.7. My goal is writing a script that I can run with two or three arguments. If run with two arguments like ...
5
votes
2answers
114 views

Adding an item to database + JSON

Is this code good? Or is it the noobiest PHP you've ever seen? ...
1
vote
0answers
19 views

Send Google Cloud Messages

I wrote code which is doing query and insert inside while loop. ...
3
votes
1answer
657 views

Wrapper for a transfer transaction API

I'm looking for any kind of advice, like when or where to do exception handling, the overall library structure/layout, usage of classes/partial classes, code efficiency, naming conventions, and so on ...
2
votes
2answers
63 views

Generated serialization code

CGbR project I am currently working on a project that generates code from classes. The idea is to achieve maximum performance by replacing reflection use cases with fast, generated code. Current ...
1
vote
1answer
77 views

Telegram - GetUpdates Process

My code fetches telegrams from a server periodically in the background. The server API is documented here. What do you think of the way I do multithreading by handling my ...
0
votes
1answer
55 views

Submitting a form via JSON

I have a feedback.js that I would like to improve. ...
4
votes
1answer
29 views

Invoking API calls with parameters specified using JSON

I have an instance of a Java class that I need to call some functions on, using the API exposed by another party. For each call, I need to both check for thrown exceptions, and check the value of the ...
1
vote
0answers
44 views

Transforming a parts catalog into a different data structure

The entire purpose of this code is to arrange the data that was dumped into CommRef_ into the required structure of ResObj. The ...
0
votes
1answer
51 views

Merging JSON objects with common values

I am trying to merge JSON objects which have common values. This is the original JSON: ...
0
votes
1answer
169 views

Wikipedia search using the JSON API

I ask to you. What I could do better in my code or logic? This my example on Codepen -> Wikipedia Search ...
2
votes
1answer
47 views

Regrouping JSON object

I wrote a JavaScript source which regrouping by new key i.e. following JSON to the other: ...
1
vote
1answer
66 views

Twitch client that notifies me when a followed streamer comes online

I've been writing code for a little while but I'm a little slapdash. I'd like to get better so I've been having a glance at best practices, other peoples code and reading a whole lot. I'd appreciate ...
10
votes
3answers
67 views

From Q to compiler in less than 30 seconds

As an adjunct to From new Q to compiler in 30 seconds, I've created a Python script to automatically download the markdown from any question on Code Review and save it to a local file using Unix-style ...
1
vote
1answer
55 views

Nested loop to transform MongoDB results

I have the following structure returned from MongoDB: ...
0
votes
1answer
41 views

Collect several API call results

Want to brush up my rusty web dev skills. I want to call the twitch API for several channels and eventually call a callback function when all results are in without using a sync call. I didn't work ...
0
votes
0answers
236 views

Loading autocomplete text view adapter dynamically using async task in Android

I am working on an app in which I need to get destination list from server and set it in autocomplete text view. I am using text watcher and on its onTextChanged event I am fetching destinations data ...