Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
2 answers
660 views

Flatten JSON to string

The code below is a Python module to flatten JSON-like structure (nested dictionaries and lists) to a single string. It also provides partial result in the form of flat list of strings. This ...
pabouk - Ukraine stay strong's user avatar
2 votes
1 answer
112 views

Parsing a string with specific pattern into json

I've a string as an input which is having some specific patterns and I'm trying to parse it into a desired json. Here is my code: ...
Abhinav's user avatar
  • 121
1 vote
1 answer
341 views

Parse JSON strings as tables using Python

Needed a simple CSV file that had headers and no nesting of data to consume in Tableau. The JSON file I was consuming had nested dictionaries and lists (which sometimes had in themselves nested lists/...
REdim.Learning's user avatar
2 votes
3 answers
9k views

Converting objects into JSON and using the StringBuilder

In my scenario I have list of object in C# code and need to be converted into JavaScript object. But there are certain condition, where the value of the object might be dynamic based on certain key. ...
Kiran Shahi's user avatar
3 votes
1 answer
2k views

bash script - sed - template file processing

Using a bash script to process a file and pass it to AWS CLI. The script runs inside a docker container. I'm using sed to do template string replace. When MY_VALUE ...
thedev's user avatar
  • 827
1 vote
1 answer
204 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 to ...
theblindprophet's user avatar
3 votes
2 answers
422 views

Parsing JSON in one go

I need to parse a simple JSON string (flat JSON, no hierarchy) for keys and values, and there is a system constraint that I cannot use any built-in JSON library and can only read a string once due to ...
Lin Ma's user avatar
  • 3,543
1 vote
2 answers
2k views

JSON string parsing

I need to parse a simple JSON string (flat JSON, no hierarchy) for keys and values, and there is a system constraint that I cannot use any built-in JSON library and can only read a string once due to ...
Lin Ma's user avatar
  • 3,543
4 votes
2 answers
629 views

Slurp JSON trading cards to valid HTML

For Cardshifter TCG we pretty frequently update our list of available cards, so I tried to think of a way to make it easy to transform an exported JSON file containing all the cards into a decent HTML ...
Phrancis's user avatar
  • 20.5k
5 votes
1 answer
386 views

Create Java object from from page content or plain text

My job is to make a specified java objects from web page that contains following text: Companies: ...
dagi12's user avatar
  • 277
5 votes
1 answer
200 views

Substitution of different occurrences of a string with changing patterns

I need to parse an invalid JSON string in which I find many repetitions of the same key, like the following snippet: ...
Andrea Spadaccini's user avatar