Skip to content

Best way to handle constant values? #1601

Answered by brwilkinson
JadedATB asked this question in Q&A
Discussion options

You must be logged in to vote

@JadedATB given that we now have loadTextContent() I think that would be the answer here moving forward, at least for now.

var config = json(loadTextContent('../bicepconfig.json'))
var item = config.analyzers

Notice you get intellisense/property discovery.

Let us know if this works for you and I will mark this discussion as answered?

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@DavidSolus
Comment options

@brwilkinson
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JadedATB
Comment options

Answer selected by brwilkinson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants