Home Forums Kamanja Forums Best Practices Unpacking the json Output of Kamanja

This topic contains 0 replies, has 1 voice, and was last updated by  Bill Bruns 2 years ago.

  • Author
  • #15845 Reply

    Bill Bruns

    Kamanja at this time gives output in the form of json, the popular internet data format.

    Often it is desirable to extract the value predicted by Kamanja from the json.

    The following small python snippet does the job:

    for line in fileinput.input():

        j = json.loads(line)

        print j[‘ModelsResult’][0][‘output’][1][‘Value’]

Reply To: Unpacking the json Output of Kamanja
Your information: