{
	"name": "FireIde.API.Expressions",
	"Web.Endpoint": "GET /expressions",
	"json": {
		"@scopeSet(exists)": {
			"@FireIde.Core.Fs.PathExists": "package.json"
		},
		"@if(exists)":{
			"@scopeSet(result)": {
				"@try":{
					"@FireIde.Core.ChildProcess.Exec(firejs)": {
						"args": "package.json  --print-expressions"
					}
				},
				"@catch": {
					"stdout": []
				}
			},
			"@return": {
				"@try":{
					"@Commons.JSON.Parse": {
						"@get(result.stdout)": null
					}
				},
				"@catch": []
			}
		},
		"@unless(exists)": []
	}
}