draw object from json