How can i create property and add value to it if it doesnt exists in platform from service.

I need to parse JSON file to get property name and update the property value. If property doesnt exixts i need to create one and update value dynamically. How can i do that??