Skip to content
neural-wetwarePublic

About

Converts JSON string to PHP code

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonphp

Reads JSON from stdin and outputs valid code for PHP array.

$ echo "[{}, {\"x\": 123, \"name\": \"John\", \"age\": 20}, {\"age\": 30, \"name\": \"Frank\"} ]" | ./jsonphp 
[
    [
    ],
    [
        'age' => 20,
        'name' => 'John',
        'id' => 123,
    ],
    [
        'age' => 30,
        'name' => 'Frank',
    ],
]

About

Converts JSON string to PHP code

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages