Complete the code to create a JSON object with a device name.
{
"device": "[1]"
}The key "device" should have a value representing the device name, such as "sensor_01".
Complete the JSON to include the temperature reading as a number.
{
"temperature": [1]
}The temperature value should be a number without quotes to represent numeric data in JSON.
Fix the error in this JSON snippet by completing the missing value for the status key.
{
"status": [1]
}In JSON, boolean values are lowercase true or false without quotes. "true" in quotes is a string, which is incorrect here.
Fill both blanks to create a JSON object with sensor ID and its reading.
{
"sensor_id": "[1]",
"reading": [2]
}The sensor ID should be a string, so it needs quotes. The reading is a number, so it should not have quotes.
Fill all three blanks to create a JSON object with device name, active status, and battery level.
{
"device": "[1]",
"active": [2],
"battery": [3]
}The device name is a string and needs quotes. The active status is a boolean true without quotes. The battery level is a number without quotes.