Is this a support request?
This issue tracker is maintained by LaunchDarkly SDK developers and is intended for feedback on the SDK code. If you're not sure whether the problem you are having is specifically related to the SDK, or to the LaunchDarkly service overall, it may be more appropriate to contact the LaunchDarkly support team; they can help to investigate the problem and will consult the SDK team if necessary. You can submit a support request by going here or by emailing [email protected].
Note that issues filed on this issue tracker are publicly accessible. Do not provide any private account information on your issues. If your problem is specific to your account, you should submit a support request as described above.
Describe the bug
When evaluating a JSON flag there is an unhandled exception.

To reproduce
Evaluate a JSON flag
Expected behavior
Do not crash when evaluating a JSON flag
Logs
SDK version
Started to happen in version 6.3.1, but I'm using 7.0.2 now
Language version, developer tools
For instance, Go 1.11 or Ruby 2.5.3. If you are using a language that requires a separate compiler, such as C, please include the name and version of the compiler too.
OS/platform
For instance, Ubuntu 16.04, Windows 10, or Android 4.0.3. If your code is running in a browser, please also include the browser type and version.
Additional context
Based on git blame this commit is causing this issue: a01ed3d
I've compared how other flags are evaluated and there is a big difference in the JSON evaluation:

Basically, I think we need to get rid of line 173 here: a01ed3d#diff-cd97361c4f9361640dd6bed725225b77187ed86a1465713e326390be4ed932b6R173