JSON Parser in C#

Sela 126 Reputation points

Hi guys, I have a quick question about parsing a json file. Could someone explain to me about LEX/YACC, how can I think of it for a json file? Do I need to implement a lexical analyzer myself or are there standard libraries I can use? The programming language used is C#.

Best regards,

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
1,271 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,562 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,000 questions
No comments
{count} votes

2 additional answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 31,256 Reputation points

    There is also the popular newtonsoft library


    While you could write a json parser in lex/yacc, these are Unix tools and are not commonly used in the windows world. Actually ANTLR is more commonly used.


  2. Limitless Technology 37,526 Reputation points

    Hello Sela,

    I would recommend to check the next posts in MDSN Forum, as they contain recommendation for that kind of parsing tools:


    --If the reply is helpful, please Upvote and Accept as answer--