Implementation of JSON parser in C#