Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Invalid Json generated #60

@energise

Description

@energise

Describe the bug

Hi! I was looking to use the json interface but found that some of the json that ESP_WifiManager outputs is invalid.

Eg - it outputs on /scan:

{"Access_Points":[{'SSID':'UPC434892', 'Encryption':true, 'Quality':'98'}, {'SSID':'Horizon Wi-Free', 'Encryption':true, 'Quality':'66'}, {'SSID':'vodafone-602D', 'Encryption':true, 'Quality':'32'}]}

This is great except that single quotes aren't allowed in json - only double quotes

https://findanyanswer.com/does-json-allow-single-quotes

Steps to Reproduce

http://192.168.4.1/scan

Expected behavior

valid json returned

Actual behavior

invalid json returned

Debug and AT-command log (if applicable)

Screenshots

image

image

Information

Please ensure to specify the following:

ESP8266
Arduino 1.8.13

Thanks for such an amazing library

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions