Partial conversion of spec to json