Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

jsonify

carbon

Convert Javascript Object literals to JSON

Single quotes? Unquoted properties? Trailing commas? Comments?

Just turn this:

/* Javascript object */
{
  foo: 'bar', // comment
  'hello': `world`, // trailing comma?
}

Into this:

{
    "foo": "bar",
    "hello": "world"
}


About

Convert Javascript Object literals to JSON

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages