How to take two words of sentence and make two seperate strings ?

Hey falks,

here is my problem:

I have a JSON file. The content of the file is:

{"ssid":"Netgear","password":"11111111"}

These were originally chars. But I have already converted it to a single string, as you can see. But my problem is:

I wannt make two seperate strings, in the area of where the two words are standin: Netgear and 11111111

How can I pick them out of the long string, and make two new strings, for example:

NewString1="Netgear";
NewString2="11111111";

Thanks mates.

https://cplusplus.com/reference/cstring/strtok/

thanks man, I will analyse that code.

Why ?
C is infinitely better equipped to process character arrays than ‘Strings’

i need it as a string. But if I can remove the "unwanted chars" before converting them into a string, than let us know :smiley:

What are unwanted characters ?
You need to be much more specific.

The world worked quite well with c-strings, then a helpful person found a way to corrupt and use more memory to make it ‘easier’ for beginners.

I understanding c-strings would be a Great Leap Forward in learning unless you jump up to a processor with more performance and memory.

Or you could just stick with delay() and cross your fingers :hugs:

Let me explain it again. This following is a String which I get after reading the jscon.config file:

String Example="{"ssid":"Netgear","password":"11111111"}";

By the way: these are the stored router data for a ESP8266. What I wanna do, is to make two string out of one. One String should contain the ssid (Netgear), and the second String schould contain the password (11111111).

wait a minute... do you mean, that using normal Strings, would disturb the perfomence of the IC ?

Very slightly, because Strings use quite a bit of additional memory (both program and RAM) and have to reprocess the Strings as c-strings and using c-string functions under the hood.