Reimplement string in step 1 by parsing string into JSON object in definition