2 Replies Latest reply on Sep 11, 2015 3:56 AM by jbethancourt

    How to build a C# class from Json file, using PI Web API

    jbethancourt

      Problem

      I need to create a Json file with my AF Structure, using PI Web API calls.

      Root

           Houston

                Pump 1

                Pump 2

                Compressor 1

           Corona

                Pump 1

                Compressor 1

                Meter 1

       

      What i have done

      I'm able to execute PI Web API call, and deserialized the file into a in a JSON Object in C#.  However I don't know how to read the values on the "Items" section, and how to navigate through the Json Object to get the rest of the values.

       

      Attached Json file create by PI Web API call.