title: Need help storing nested json in postgresql using jdbi
body: <p>I am attempting to store JSON in a postgresql 9.4 database using the JSONB datatype with dropwizard and jdbi.  I am able to store the data, but if my json goes any deeper than a single level, the json gets turned into a string instead of nested json.</p>
  
  <p>For instance, the following json</p>
  
  <pre><code>{
    "type":"unit",
    "nested": {
      "key":"embedded"
    }
  }
  </code></pre>
  
  <p>actually gets stored as </p>
  
  <pre><code>{
    "type":"unit",
    "nested":"{key=embedded}"
  }
  </code></pre>
  
  <p>The method signature in my DAO is</p>
  
  <pre><code>@SqlUpdate("insert into entity_json(id, content) values(:id, :content\\:\\:jsonb)")
  protected abstract void createJson(@Bind("id") String id, @Bind("content") Map content);
  </code></pre>
  
  <p>I obviously have something wrong, but I can't seem to figure out the correct way to store this nested data.</p>