# JSON Parser

**URL:** <https://forum.alternetsoft.com/t/json-parser/88>\
**Category:** AlterNET Studio Support\
**Tags:** editor\
**Created:** [March 5, 2020, 12:00am UTC](https://forum.alternetsoft.com/t/json-parser/88 "2020-03-05T00:00:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony.Valenti](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/t/606060/32.png) [@Tony.Valenti](https://forum.alternetsoft.com/u/Tony.Valenti)\
**Post date:** [March 5, 2020, 12:00am UTC](https://forum.alternetsoft.com/t/json-parser/88/1 "2020-03-05T00:00:00Z")

</div>

We have a feature in our app where we want to let the user enter a block of JSON. Is there a JSON parser?

---

<div class="post-metadata">

**Author:** ![Tony.Valenti](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/t/606060/32.png) [@Tony.Valenti](https://forum.alternetsoft.com/u/Tony.Valenti)\
**Post date:** [March 5, 2020, 12:00am UTC](https://forum.alternetsoft.com/t/json-parser/88/2 "2020-03-05T00:00:00Z")

</div>

Actually I think I am technically looking for a JSON Lexer. Basically something that gives them nice syntax warnings if they put in bad JSON data.

---

<div class="post-metadata">

**Author:** ![andrew.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/andrew.medvedev/32/28_2.png) [@andrew.medvedev](https://forum.alternetsoft.com/u/andrew.medvedev)\
**Post date:** [March 5, 2020, 12:00am UTC](https://forum.alternetsoft.com/t/json-parser/88/3 "2020-03-05T00:00:00Z")

</div>

Hello Tony,  
Our JavaScript parser can be used here to parse json-object declarations like this:  
var myObj = {name: "John", age: 31, city: "New York"};   
If you need just json object to be present in the code (without declaration), this can be done too.   
I've uploaded demo project showing how to do it here:  
[https://drive.google.com/open?id=15R2lrI8mX7CJgTiHJtk563K\_sh-dnQ\_s](https://drive.google.com/open?id=15R2lrI8mX7CJgTiHJtk563K_sh-dnQ_s)  
This parser analizes syntax to be correct JSON-syntax, but do not analyze the data in that JSON object.   
If you need extra validation to be performed on top of syntax parsing, could you please provide a bit more description about what you need to achieve?  
regards,  
Andrew

---

<div class="post-metadata">

**Author:** ![Tony.Valenti](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/t/606060/32.png) [@Tony.Valenti](https://forum.alternetsoft.com/u/Tony.Valenti)\
**Post date:** [March 5, 2020, 12:00am UTC](https://forum.alternetsoft.com/t/json-parser/88/4 "2020-03-05T00:00:00Z")

</div>

Hi Andrew,  
This is great! I think that this is what we need. We basically want to make sure that the customer is providing syntactically valid Json. We don't care what data they actually provide as long as we know we can parse it.  
Can you please add this parser to Alternet directly?

---

<div class="post-metadata">

**Author:** ![andrew.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/andrew.medvedev/32/28_2.png) [@andrew.medvedev](https://forum.alternetsoft.com/u/andrew.medvedev)\
**Post date:** [March 7, 2020, 12:00am UTC](https://forum.alternetsoft.com/t/json-parser/88/5 "2020-03-07T00:00:00Z")

</div>

Hello Toni,  
We will add JSON parser to the coming release.  
regards,  
Andrew
