Top "Parsing" questions

Parsing refers to breaking an artifact into its constituent elements and capturing the relationship between those elements.

Parse a URI String into Name-Value Collection

I've got the URI like this: https://google.com.ua/oauth/authorize?client_id=SS&response_type=code&…

java parsing uri namevaluecollection
"Expected BEGIN_OBJECT but was STRING at line 1 column 1"

I have this method: public static Object parseStringToObject(String json) { String Object = json; Gson gson = new Gson(); Object objects = gson.…

java json parsing gson
Reading a file line by line in Go

I'm unable to find file.ReadLine function in Go. I can figure out how to quickly write one, but I …

string file parsing go line
Parsing JSON string in Java

I am trying to parse a JSON string in java to have the individual value printed separately. But while making …

java json parsing
Java format yyyy-MM-dd'T'HH:mm:ss.SSSz to yyyy-mm-dd HH:mm:ss

I'm trying to format a date in yyyy-MM-dd'T'HH:mm:ss.SSSz format to yyyy-mm-dd HH:mm:ss, which should be …

java parsing date simpledateformat
How do I check if a C++ std::string starts with a certain string, and convert a substring to an int?

How do I implement the following (Python pseudocode) in C++? if argv[1].startswith('--foo='): foo_value = int(argv[1][len(…

c++ string parsing substring startswith
Best XML parser for Java

I need to read smallish (few MB at the most, UTF-8 encoded) XML files, rummage around looking at various elements …

java xml parsing
Nested JSON objects - do I have to use arrays for everything?

Is there any way to have nested objects in JSON so I don't have to make arrays out of everything? …

javascript jquery json syntax parsing
Parse string to DateTime in C#

I have date and time in a string formatted like that one: "2011-03-21 13:26" //year-month-day hour:minute How can I …

c# .net string parsing datetime
How to convert comma-delimited string to list in Python?

Given a string that is a sequence of several values separated by a commma: mStr = 'A,B,C,D,E' …

python parsing list tuples