* @param input
* The input.
* @return The property set.
*/
@Override public PropertySet readProperties(JsonValue input) {
final PropertySet propertySet = new PropertySet();
for(JsonValue valueMap = input.child(); valueMap != null; valueMap = valueMap.next()) {
switch(valueMap.type()) {
case object:
parseObject(valueMap, propertySet);
break;
case array:
parseArray(valueMap, propertySet);
break;
case stringValue: // Fall through
case doubleValue: // Fall through
case longValue: // Fall through
case booleanValue:
propertySet.put(valueMap.name(), new Property(valueMap.name(), valueMap.asString()));
break;
case nullValue:
propertySet.put(valueMap.name(), null);
break;
}
}
return propertySet;
}