AndriianChestnykh / json-solidity

Storing and working with JSON objects in Solidity smart contracts
MIT License
21 stars 1 forks source link

How to store a Json having nested Object inside ? #38

Open vkpatva opened 1 year ago

vkpatva commented 1 year ago

Hi @AndriianChestnykh , How to store JSON such as :

{
  source: "/mycontext",
  id: "df7ba018-35a9-426a-9726-a065a20e0d0e",
  time: "2018-04-05T17:31:00Z",
  cesreceiveddate: "2023-08-09T13:55:21.642124Z",
  datacontenttype: "application/json",
 data: {
  issuanceDate: "2023-08-09T11:41:43.131Z",
  expirationDate: "2023-11-07T11:41:43.131Z",
}
}
AndriianChestnykh commented 1 year ago

Hi, @vkpatva. Unfortunately, this library does not support nested JSON objects. You can try to fork it and introduce PR, which implements it. I will review and merge it if it works properly.