Skip to content

Commit f69bd93

Browse files
Merge pull request #54 from splitio/fix-example
fix readme example
2 parents 8d39da6 + 44e38ae commit f69bd93

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,7 @@ This provider includes the Split treatment config as a raw JSON string under fla
7676
FlagEvaluationDetails<String> details =
7777
client.getStringDetails("my-flag", "fallback", ctx);
7878

79-
Metadata md = details.getFlagMetadata();
80-
if (md != null) {
81-
82-
Map<String, Value> meta = md.asMap();
83-
84-
Value config = meta.get("config"); // ← Split treatment config
85-
}
79+
String jsonConfig = details.getFlagMetadata().getString("config"); // ← Split treatment config
8680
```
8781

8882
## Tracking

0 commit comments

Comments
 (0)