Custom DSL on Hadi's page, how is this implemented? "name" .. "Mr. Jones"


Hi, There is a JSON DSL on Hadi's page: Please how is following DSL implemented ? What is ".." double dot?

json {
  “name” … “Mr. Jones”
  “age” … 5   

Many thanks,


That was one of the solutions proposed and Rob was overriding the rangeTo operator. Here's the code. Haven't tried compiling it recently.


Got it. Thank you! J.