Php Create Json Array Python Methods And Functions