Skip to content

Simple utility for evaluating JavaScript against a JSON object

Notifications You must be signed in to change notification settings

robbytx/jsoneval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

jsoneval

Simple utility for evaluating JavaScript against a JSON object

# Extracts the token definitions
$ c2013.sh fdefs |jsoneval 'input.contentTemplateTokens' |jsonpp

# Extracts a specific feature from feature definitions:
$ c2013.sh fdefs |jsoneval 'function findFeature(id) {if (input.features) {return input.features[id];} var result; input.categories.forEach(function (category) {category.groups.forEach(function (group) {group.features.forEach(function (feature) {if (feature.id === id) {result = feature}})})}); return result}; findFeature("emailTemplatesEditor")' |jsonpp

About

Simple utility for evaluating JavaScript against a JSON object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published