title: How to read a JSON string with escaped quotes in Play
body: <p>I'm receiving some JSON from a server:</p>
  
  <pre><code>"payload":"{\"action\":\"schedule\"}"
  </code></pre>
  
  <p>For why I am getting this odd looking JSON see <a href="https://stackoverflow.com/questions/38804308/how-to-add-a-utf-8-string-of-json-within-json-in-curl">this question</a>. I've written some code to parse this bit of the object:</p>
  
  <pre><code>  implicit val botPayloadReads: Reads[BotPayload] = (
      (JsPath \ """\"action\"""").read[String] and
        (JsPath \ """\"returnToAction"""").readNullable[String]
      )(BotPayload.apply _)
  </code></pre>
  
  <p>But I am getting an error:</p>
  
  <pre><code>List((/entry(0)/messaging(0)/postback/payload/\"action\",List(ValidationError(List(error.path.missing),WrappedArray()))))
  </code></pre>
  
  <p>Which is a little weird because the path \"action\" is exactly what we are looking for.</p>