title: Is there a data-structure similar to JSON in JAVA?
body: <p>I need to store key-value pairs inside key-value pairs and so on as required by the data.</p>
  
  <p>I tried to achieve this using Hash-Map in java but it didn't work as I expected it to. Since, my data has multiple name->value pairs, but the Hash-Map keeps overwriting the name key's value with the new one.</p>
  
  <p>Say for example, I need to store a list of products and their details for an online store. Which data structure would help me achieve this and how ?</p>
  
  <p>TIA.</p>