set properties to any json encodable value