title: how to parse a build.gradle file into someother data form
body: <p>Gradle is DSL. I want to know if any means to parse a 'build.gradle' script into someother data form?
  for example, to a JSON, so I could modify it with codes. </p>
  
  <p>And further, how to parse reversely? (JSON back to build.gradle).</p>
  
  <p>Sorry for the nonsense, I recently have to do some dynamic 'build.gradle' modification work with some kind of script, which includes modifying some existing task in that 'build.gradle' script.</p>
  
  <p>Any help would be good.</p>