JSON Ninja?

Has anyone out there cracked the JSON code for custom labeling? I’ve seen at least 1 community answer for using some JSON to feed some properties into a custom label, and I’m wanting more! I’ve recently opened a support request for this information, specifically around finding parameters I can pass for VMWare Virtual Machine properties.


It isn’t JSON code for the custom labelling, it’s actually a type of Mustache syntax. Anything inside {{double curlys}} gets evaluated. So it is possible to put in variable names and basic JavaScript functions.

It is possible to use basic JavaScript functions such as:

{{Name.replace('.domain.local','')}}, Host: {{HostServerName}}


To find the variable names that you can use for an object, you can use the Operations Manager Shell to query SCOM:

Get-SCOMMonitoringObject -id <insert_object_id> | fl

This will list out all of the extended properties, the Squared Up custom labelling does not require the [Class.Name] part of the variable. To use any extended properties you will have to check the ‘load extended properties’ box.

1 Like

Is this possible for Status applets in SquaredUpV3? Where would you place the replace statement in the JSON?

I belive this is java script type of syntax? Anyway, you can use the properties discovered on each object for labelling. I’m not your ninja, but here is an exaple of what we have done to display our disks

{{Name}} on {{PrincipalName}}

Hey Phippsy, as far as I know it is not possible in v3 yet, they are working on feature parity with v2 which should be ready by the end of this year.