title: JSON vs JSONB Postgresql
body: <p>I am reading about differences between JSON and JSONB datatypes on PostgreSql documentation <a href="https://www.postgresql.org/docs/13/datatype-json.html" rel="nofollow noreferrer">https://www.postgresql.org/docs/13/datatype-json.html</a>.</p>
  <p>There is this line</p>
  <blockquote>
  <p>The json data type stores an exact copy of the input text, which
  processing functions must reparse on each execution; while jsonb data
  is stored in a decomposed binary format that makes it slightly slower
  to input due to added conversion overhead, but significantly faster to
  process, since no reparsing is needed</p>
  </blockquote>
  <p>I am not able to understand what is the difference between storing as text and storing as binary format is, the string itself will be stored as as sequence of 0's and 1's.</p>
  <p>Can somebody please clarify? Also, will there be a size difference between them?</p>