Skip to content

Json template input use as a script to generate json outputs, Java functional programming

Notifications You must be signed in to change notification settings

sanjayatb/json-scripting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

json scripting

Json template input use as a script to generate json outputs

Example : Sample output template

{
  "dateTime" : "$s$dateNow",
  "date" : "$f$date(MM/dd/yyyy)",
  "twoParams" : "$bf$twoParams(param1,param2)",
  "threeParams" : "$tf$threeParams(param1,param2,param3)"
}

After evaluation above rules by the rule engine, it will produce below output.

{
  "dateTime" : "2020-06-14T14:03:37.443",
  "date" : "06/14/2020",
  "twoParams" : "param1_param2",
  "threeParams" : "param1+param2+param3"
}

========== Above json template can handle any complex structure of json(arrays,maps)

About

Json template input use as a script to generate json outputs, Java functional programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages