Good night, I would like to know if there is a way to get data from one json and save it to another automatically without needing to treat json as "text" (regex) in case, I already used perl's JSON module use JSON;) but it was for a simpler utility, I already did some searches and I did not find anything like that that I need.
json that I'm going to "get" the information is like this:
[{"name":"AK-47 | Aquamarine Revenge (Battle-Scarred)","price":1292,"have":10,"max":28},{"name":"AK-47 | Aquamarine Revenge (Factory New)","price":3769,"have":4,"max":13}]
I would like to pass only the entries that are within "name" and "price", getting something like this:
{"AK-47 | Aquamarine Revenge (Battle-Scarred)":"13.16",
"AK-47 | Aquamarine Revenge (Factory New)":"37.64"}]
I've gotten something by treating json as text, but it's not getting "good" as you're dealing with the file. Any example or idea is already welcome for me to start looking for how to solve.
Thank you in advance for your help.