Giter Club home page Giter Club logo

php-fw's Issues

Strange behavior in SimpleJSON

class

core\data\SimpleJSON

method

encode()

data

Array (
    [id_entity] => 100359
    [firstname] => SYLVIE
    [name] => RIFLE
    [gender] => F
    [rpps] => 10003981056
    [birthdate] => 1962
    [exercise_mode] => V
    [department] => 91
    [uga] => 91EVR
    [uda9] => 1
    [uu9] => 9
    [drv_date_add] => 2016-03-16 03:51:35
    [emails] => Array (
            [email_1] => [email protected]
        )
    [specialties] => Array (
            [specialty_1] => MG
            [specialty_1_bis] => MG
        )
    [addresses] => Array (
            [0] => Array (
                    [address_1] => 4 square zephirin camelinat
                    [postcode] => 91000
                    [city] => EVRY
                )
        )
    [parent_entities] => Array (
        )
    [phones] => Array (
            [phone_1] => 0164971077
        )
)

data after encoding

{
    "id_entit": "100359",
    "firstnam": "SYLVIE",
    "name": "RIFL",
    "gender": "",
    "rpps": "1000398105",
    "birthdat": "1962",
    "exercise_mod": "",
    "department": "91",
    "ug": "91EV",
    "uda9": "",
    "uu": "",
    "drv_date_add": "2016-03-16 03:51:3",
    "emails": {
        "email_1": "[email protected]"
    },
    "specialtie": {
        "specialty_1": "MG",
        "specialty_1_bis": "MG"
    },
    "addresse": [
        {
            "address_1": "4 square zephirin camelina",
            "postcode": "9100",
            "city": "EVRY"
        }
    ],
    "parent_entitie": [],
    "phones": {
        "phone_1": "0164971077"
    }
}

observations

It seems that the last letter of most of the indexes at the root level is gone after encoding

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.