fix json format to enable scala drawing