Java Code Examples for com.eclipsesource.json.JsonValue#valueOf()
The following examples show how to use
com.eclipsesource.json.JsonValue#valueOf() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChatGroup.java From Skype4J with Apache License 2.0 | 4 votes |
private void updateBanlist() throws ConnectionException { JsonValue bannedUserList = JsonValue.valueOf(bannedIds.stream().collect(Collectors.joining(","))); putOption("banneduserlist", bannedUserList, true); }
Example 2
Source File: ChatGroup.java From Skype4J with Apache License 2.0 | 4 votes |
private void updateWhitelist() throws ConnectionException { JsonValue whitelistedUserList = JsonValue.valueOf(whitelistedIds.stream().collect(Collectors.joining(","))); putOption("alloweduserlist", whitelistedUserList, true); }
Example 3
Source File: MetadataFieldFilter.java From box-java-sdk with Apache License 2.0 | 4 votes |
/** * Create a filter for matching against a string metadata field. * @param field the field to match against. * @param value the value to match against. */ public MetadataFieldFilter(String field, String value) { this.field = field; this.value = JsonValue.valueOf(value); }