Skip to content

dshika/Simple-JSON-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple JSON Parser Utility

'.' Notation

The objective of this utility is to easily convert a single line to nested JSON objects using the '.' notation.

For example,

If the input provided to the parser is Key1.Key2.Key3=Value, the output will be

{
Key1 : 
  Key2 : 
    Key3 : Value
}

Comma Separated Input String

The parser can take inputs as a comma separated string with '.' format to create the various levels of the output JSON object.

For example,

If the input provided to the parser is as below,

Key1=Value1,Key2.Key21=Value2,Key3.Key31.Key311=Value3,Key3.Key32=Value4

Then the output generated will be as below,

{
Key1 : Value1
Key2 : 
  Key21 : Value2
Key3 : 
  Key31 :
    Key311 : Value3
  Key32 : Value4
}

About

A simple JSON utility to parse nested objects using "." notation in a single line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages