diff --git a/reference/json/book.xml b/reference/json/book.xml index 6391a9a70c..3ee0f8b04c 100644 --- a/reference/json/book.xml +++ b/reference/json/book.xml @@ -1,6 +1,5 @@ - - + @@ -11,9 +10,10 @@ &reftitle.intro; - Denne udvidelse implementere JavaScript Objekt Notation (JSON) - data-udvekslings format. Enkodningens behandleren er baseret på JSON_checker analyseren af Douglas - Crockford. + This extension implements the JavaScript Object Notation (JSON) + data-interchange format. The decoding is handled by a parser based on + the JSON_checker by Douglas Crockford. diff --git a/reference/json/constants.xml b/reference/json/constants.xml index e897af02ad..acb2864e90 100644 --- a/reference/json/constants.xml +++ b/reference/json/constants.xml @@ -1,6 +1,5 @@ - - + &reftitle.constants; diff --git a/reference/json/functions/json-decode.xml b/reference/json/functions/json-decode.xml index 7098f25613..4b25fc7028 100644 --- a/reference/json/functions/json-decode.xml +++ b/reference/json/functions/json-decode.xml @@ -1,11 +1,9 @@ - - - + json_decode - Afkoder en JSON streng + Decodes a JSON string @@ -16,7 +14,7 @@ boolassoc - Tager en JSON enkodet streng og konverter den til en PHP variabel. + Takes a JSON encoded string and converts it into a PHP variable. @@ -28,7 +26,7 @@ json - JSON streng til at afkode. + The json string being decoded. @@ -36,8 +34,8 @@ assoc - Når &true;, vil returnerede objekter bliver konverteret til - et associative arrays. + When &true;, returned objects will be converted into + associative arrays. @@ -48,8 +46,9 @@ &reftitle.returnvalues; - Returnere et objekt eller hvis den valgfrie assoc - parameter er &true;, et assocativt array er returneret i stedet. + Returns an object or if the optional + assoc parameter is &true;, an associative + array is instead returned. @@ -57,7 +56,7 @@ &reftitle.examples; - <function>json_decode</function> eksempler + <function>json_decode</function> examples {'foo-bar'}; // 12345 &reftitle.notes; - Denne funktion vil returnere &false; hvis den enkodet JSON data struktur's - dybde er mere en 127 elementer. + This function will return false if the JSON encoded data is deeper than + 127 elements. @@ -131,7 +130,7 @@ print $obj->{'foo-bar'}; // 12345 5.2.3 - Max struktur dybde blev ændret fra 20 til 128 + The nesting limit was increased from 20 to 128 diff --git a/reference/json/functions/json-encode.xml b/reference/json/functions/json-encode.xml index ebe11493ff..a1fc1ee6ff 100644 --- a/reference/json/functions/json-encode.xml +++ b/reference/json/functions/json-encode.xml @@ -1,11 +1,9 @@ - - - + json_encode - Returner en JSON enkodet streng + Returns the JSON representation of a value @@ -15,7 +13,8 @@ mixedvalue - Returner en JSON enkodet streng af value. + Returns a string containing the JSON representation of + value. @@ -27,11 +26,11 @@ value - value parameteren kan have hvilken som helst type, dog - ikke en resource. + The value being encoded. Can be any type except + a resource. - Denne funktion virker kun med UTF-8 enkodet data. + This function only works with UTF-8 encoded data. @@ -42,7 +41,7 @@ &reftitle.returnvalues; - Returner en JSON enkodet streng ved success. + Returns a JSON encoded string on success. @@ -61,7 +60,7 @@ 5.2.1 - Tilføjet support for basale JSON enkodings typer + Added support to JSON encode basic types @@ -74,7 +73,7 @@ &reftitle.examples; - <function>json_encode</function> eksempel + A <function>json_encode</function> example - - + JSON &Functions; diff --git a/reference/json/setup.xml b/reference/json/setup.xml index 398204d8c8..1feb25548d 100644 --- a/reference/json/setup.xml +++ b/reference/json/setup.xml @@ -1,6 +1,5 @@ - - + &reftitle.setup; @@ -8,8 +7,7 @@
&reftitle.required; - Fra og med PHP 5.2.0, er JSON udvidelsen bundtet og kompileret ind i PHP - som standard. + As of PHP 5.2.0, the JSON extension is bundled and compiled into PHP by default.