Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Better INI parsing support before coverting to JSON #18

@0hsn

Description

@0hsn

What

Right now sspp only support INI of following type

;; Key and Value can not contain any spaces

[section]
k=v

[section1]
k1=v1
k2=1
k3=3.5
k4=0.0.0.0

Why

This is due to the internal functionality of how wlevene/ini works.

Change request

It also need to support following

;; THIS IS NOT SUPPORTED NOW
;; Key and Value can not contain any spaces

[section]
k = value okay

[section1]
k1 = "value okay too"
k3 = 3.5 ;; should treat as float
k4 = 0.0.0.0 ;; should treat as string

However it can be skipped for following case:

  • the key contains spaces, this can come from both JSON and YAML case
    • may be system should return error, but it's debatable

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions