Tagged Questions
0
votes
2answers
147 views
Nested file_get_contents / json_decode
I have this code but it takes over a minute to run. I'm looking at around 400 entries being brought back for the first loop. Any ideas on how it could be improved for speed?
...
3
votes
1answer
91 views
Finding an object in a nested object/array structure
I have an app with a bunch of questions defined in a yaml file. For various reasons I would like the data to be divided into sections (section_0, ...
2
votes
1answer
399 views
Check deep object property and find duplicate value
I use the following code to find if there is duplicate value in property path:
...
0
votes
1answer
70 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
1answer
96 views
Merging JSON objects with common values
I am trying to merge JSON objects which have common values.
This is the original JSON:
...
1
vote
1answer
108 views
1
vote
1answer
116 views
Rendering JSON array as a tree
This code is working fine for me, but I want to simplify it.
Function parents is defining parents of the tree and children ...
7
votes
3answers
1k views
Ticket management system
I am building a ticket management system for a state server we use at work. Back end is node.js with multiple front ends. I am rewriting my back end to be more maintainable as the scope grows.
For ...
2
votes
1answer
124 views
Most efficient way to insert into ordered sequence
I have a dashboard like interface, that can have many tabs. There can be as many or as few tabs as the user likes, with the user being allowed to re order them as they wish. Exactly like browsers do.
...
2
votes
1answer
2k views
Shuffling a JSON array in Java
Since I did not get a satisfactory answer here (and I really needed to get it going on this weekend), I decided to implement my own Fisher–Yates shuffle, porting the code I found in other SO posts. I ...