Forum

    • Register
    • Login
    • Search
    • Categories

    JSON/Object from string

    General Questions
    2
    3
    33
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Lindon
      Lindon last edited by Lindon

      OK, follow up question. So I have my RSA encrypted JSON, I can decrypt it, and I get back a string like this:

      {"SerialNumber": "ABCDABCDABCDABCD", "ExpirationDate": "2023-01-18T05:25:43.511Z"}
      

      Now I want to turn this into an object so I can reference like this:

      if(myObj.SerialNumber == "ABCDABCDABCDABCD")
      {
        // do something funky
      }
      

      So is there any way to get a string into an object? Essentially Javascript's JSON.parse(string);

      HISE Development for hire.
      www.channelrobot.com

      d.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        d.healey @Lindon last edited by

        https://forum.hise.audio/topic/5310/json-parse-or-parsejson?_=1674133751694

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        Lindon 1 Reply Last reply Reply Quote 1
        • Lindon
          Lindon @d.healey last edited by Lindon

          @d-healey - oh very nice - thank you....given the dates on that thread I'm only 12 months behind you now!!

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 1
          • First post
            Last post

          18
          Online

          982
          Users

          6.6k
          Topics

          60.7k
          Posts