Python Forum
Python 3.5.2 & json on win 10
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python 3.5.2 & json on win 10
#12
JUST GOT IT WORKING!

You guys were right about the json file.

This is what it looked like before formatting:
{"zones": [[1, 3], [3, 5], [5, 89]], "weekdays": [1, 2], "ontime": [5, 1]}

And this is what it looks like after formatting:
{
"zones":[
[
1,
3
],
[
3,
5
],
[
5,
89
]
],
"weekdays":[
1,
2
],
"ontime":[
5,
1
]
}

The only problem I see is it worked fine unformatted on a Linux system. But I gues it doesn't matter now because I have it working on Win 10.

Thanks for the pointers folks.

It is working!

After formatting the json file online, it works just fine.

The original file: {"zones": [[1, 3], [3, 5], [5, 89]], "weekdays": [1, 2], "ontime": [5, 1]}

The formatted file:
{
"zones":[
[
1,
3
],
[
3,
5
],
[
5,
89
]
],
"weekdays":[
1,
2
],
"ontime":[
5,
1
]
}

Not sure why the unformatted file works on linux but not win 10, but at least I got it working.

Thanks for the help folks.
Reply


Messages In This Thread
Python 3.5.2 & json on win 10 - by PickyBiker - Nov-28-2016, 12:00 AM
RE: Python 3.5.2 & json on win 10 - by micseydel - Nov-28-2016, 12:04 AM
RE: Python 3.5.2 & json on win 10 - by PickyBiker - Nov-28-2016, 12:32 AM
RE: Python 3.5.2 & json on win 10 - by micseydel - Nov-28-2016, 12:36 AM
RE: Python 3.5.2 & json on win 10 - by PickyBiker - Nov-28-2016, 12:43 AM
RE: Python 3.5.2 & json on win 10 - by micseydel - Nov-28-2016, 12:48 AM
RE: Python 3.5.2 & json on win 10 - by PickyBiker - Nov-28-2016, 04:16 AM
RE: Python 3.5.2 & json on win 10 - by micseydel - Nov-28-2016, 04:21 AM
RE: Python 3.5.2 & json on win 10 - by snippsat - Nov-28-2016, 06:32 AM
RE: Python 3.5.2 & json on win 10 - by PickyBiker - Nov-28-2016, 04:24 PM
RE: Python 3.5.2 & json on win 10 - by micseydel - Nov-28-2016, 04:30 PM
RE: Python 3.5.2 & json on win 10 - by PickyBiker - Nov-28-2016, 04:32 PM
RE: Python 3.5.2 & json on win 10 - by micseydel - Nov-28-2016, 04:58 PM
RE: Python 3.5.2 & json on win 10 - by Ofnuts - Nov-28-2016, 06:00 PM
RE: Python 3.5.2 & json on win 10 - by PickyBiker - Nov-28-2016, 06:01 PM
RE: Python 3.5.2 & json on win 10 - by micseydel - Nov-28-2016, 07:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Split json into separate json based on node value CzarR 1 5,924 Jul-08-2022, 07:55 PM
Last Post: Larz60+
  difficulties to chage json data structure using json module in python Sibdar 1 2,147 Apr-03-2020, 06:47 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020