Python Forum
[split] script: remove all "carriage return" from my json variable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] script: remove all "carriage return" from my json variable
#3
If you are really sure it is just the carriage return at the end you could use lines[0].strip('\n') etc.
Reply


Messages In This Thread
RE: [split] script: remove all "carriage return" from my json variable - by deanhystad - May-05-2020, 03:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to generating multiple json files using python script dzgn989 4 274 May-10-2024, 03:09 PM
Last Post: deanhystad
  Receiving this error in my "response" and causes script to return wrong status cubangt 18 2,275 Aug-13-2023, 12:16 AM
Last Post: cubangt
  Trouble with threading and reading variable from a different script Lembas 14 3,222 Apr-26-2023, 11:21 PM
Last Post: Lembas
  Python Script to convert Json to CSV file chvsnarayana 8 2,640 Apr-26-2023, 10:31 PM
Last Post: DeaD_EyE
  [split] Parse Nested JSON String in Python mmm07 4 1,622 Mar-28-2023, 06:07 PM
Last Post: snippsat
  Remove a space between a string and variable in print sie 5 1,872 Jul-27-2022, 02:36 PM
Last Post: deanhystad
  Split string using variable found in a list japo85 2 1,361 Jul-11-2022, 08:52 AM
Last Post: japo85
  Python Split json into separate json based on node value CzarR 1 5,818 Jul-08-2022, 07:55 PM
Last Post: Larz60+
Question How can I import a variable from another script without executing it ThomasFab 12 8,049 May-06-2022, 03:21 PM
Last Post: bowlofred
  How to return the next page from json recursively? sandson 0 1,208 Apr-01-2022, 11:01 PM
Last Post: sandson

Forum Jump:

User Panel Messages

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