It looks like you have multiple separate JSON objects in your file, but JSON only allows a single top-level object (which can be an object {}, array [], string, number, etc.).
To fix this, you have a few options depending on your goal. I'll show you three common solutions :
Option 1: Merge into a Single JSON Object
Combine all key-value pairs into one big object . This is probably what you want if these flags belong together logically.
Formatted Result:
json Copy code
{
"FFlagRenderNoLowFrmBloom": "False",
"FFlagRenderFixFog": "True",
"FFlagDebugDisableTelemetryEphemeralCounter": "True",
"FFlagDebugDisableTelemetryEphemeralStat": "True",
"FFlagDebugDisableTelemetryEventIngest": "True",
"FFlagDebugDisableTelemetryPoint": "True",
"FFlagDebugDisableTelemetryV2Counter": "True",
"FFlagDebugDisableTelemetryV2Event": "True",
"FFlagDebugDisableTelemetryV2Stat": "True"
}
How to do this:
Just copy all the lines.
Remove the { and } from the middle sections.
Ensure there's only one { at the start and one } at the end.
Option 2: Wrap Them in a JSON Array
If these are separate configurations or groups of settings , put them in an array [].
Formatted Result:
json Copy code
[
{
"FFlagRenderNoLowFrmBloom": "False"
},
{
"FFlagRenderFixFog": "True"
},
{
"FFlagDebugDisableTelemetryEphemeralCounter": "True",
"FFlagDebugDisableTelemetryEphemeralStat": "True",
"FFlagDebugDisableTelemetryEventIngest": "True",
"FFlagDebugDisableTelemetryPoint": "True",
"FFlagDebugDisableTelemetryV2Counter": "True",
"FFlagDebugDisableTelemetryV2Event": "True",
"FFlagDebugDisableTelemetryV2Stat": "True"
}
]
How to do this:
Add [ at the very start.
Add ] at the very end.
Put commas , between the closing } and the next opening {:
json Copy code
... "False" }**,** { "FFlagRenderFixFog": ...
Option 3: Nest Them Under Categories (if applicable)
If these flags have logical groups , nest them:
Formatted Result:
json Copy code
{
"RenderingFlags": {
"FFlagRenderNoLowFrmBloom": "False",
"FFlagRenderFixFog": "True"
},
"DebugTelemetryFlags": {
"FFlagDebugDisableTelemetryEphemeralCounter": "True",
"FFlagDebugDisableTelemetryEphemeralStat": "True",
"FFlagDebugDisableTelemetryEventIngest": "True",
"FFlagDebugDisableTelemetryPoint": "True",
"FFlagDebugDisableTelemetryV2Counter": "True",
"FFlagDebugDisableTelemetryV2Event": "True",
"FFlagDebugDisableTelemetryV2Stat": "True"
}
}
How to do this:
Group related flags under a new key (e.g., "RenderingFlags").
Indent their contents.
Additional Formatting Tips (Pretty-Printing):
Indent with 2 spaces (common style) or 4 spaces (if you prefer).
Ensure commas are only after values , not at the end of the last item.
Quotes around keys and string values are mandatory in JSON.
You can use online tools like:
Or in VS Code :
Open the file.
Install the "Prettier" extension (if not already).
Press Shift + Alt + F (Windows/Linux) or Shift + Option + F (Mac).
Pick the solution that fits your use case! Let me know if you need further help. 😊