image.png

Object: { "firstName":"Yassine" } — an unordered key–value pair, kind of like a mini spreadsheet row. It has keys (the names of a variable, basically), and then values (what that variable equals). In the above example, firstName is the key, Yassine is the value.

Array: [ "Yassine", "Oussma", "Nabil" ] — an ordered list of values, similar to a column of rows in said spreadsheet.

⇒ o wast n8n kan9adro ndiro Object wast array o 7ta l3aks

so n8n katkhalik tkteb javascript directement f expression

laderna {{2+2}} ghat3tina (Result liki3tina)-> 4

ila khdina had jomla string ka entry ' This is ai bdarija '

# Split()  
{{ $json.name.split(" ") }}  (Result liki3tina)->  ["this", "is", "ai", "bdarija"]
{{ $json.name.split() }}   ->  ["this is ai bdarija"]
{{ $json.name.split("") }}  ->  ["t", "h", "i", "s", " ", "i", "s", " ", "a", "i", " ", "b", "d", "a", "r", "i", "j", "a"]

# includes()  ->  ( n9adro nkhadmoha matalan bach nchofo smia dyal wa7ed company wach fiha dik LLC, LTD, Inc .... )
{{ $json.name.includes("is") }}  -> true

# startswith()  
{{ $json.name.startsWith("s") }}  ->   false

# endswith()  
{{ $json.name.endsWith(".") }} ->    false

# replaceAll()  
{{ $json.name.replaceAll("ai","AI") }}  ->  this is AI bdarija

# length()  -> (chi marat katkhadmeha bach t7seb ch7al 3andek men character, b7la mli kat scraper chi 7aja kbira ola big websites code li katkharej kbir bzf, la3titih l AI katkhaser rasek bzf flous )
{{ $json.name.length }} 

# base64Encode()  -> ( kat7awel text b anglais l format base 64 kankhadmoha f some API kifma kena dernaha f example dyal image generation)
{{ $json.name.base64Encode() }}  ->  dGhpcyBpcyBhaSBiZGFyaWph

# base64Decode()  -> ( kadir l3aks dyal li 9bel menha )
{{ $json.name.base64Encode().base64Decode() }} ->  this is ai bdarija

# Concat()   
{{ $json.name.concat(" this is another sentence.") }}  ->  this is ai bdarija this is another sentence.

# extractDomain()  -> ( kin also extractEmail() or extractUrl() … )
{{ "[email protected]".extractDomain() }}  -> aibdarija.ai
- hna t9dar tkhadem also like {{ $json.name.extractDomain() }}

# hash()  -> (b7al chkel d base64 and kista3mloha ktar for cryptography )
{{ $json.name.hash() }} ->  82de46f49f349b0214c71648bb57b294

# quote()  -> ( labghayti tsta3melha for json bach dir wa7ed l7aja anaha tkteb ka string )
{{ $json.name.quote() }}  ->  "this is ai bdarija"

# removeMarkdown()  -> ( hna aymsa7 dik # dyal markdown )
{{ "# this is a Headline h1 line".removeMarkdown() }}  ->  this is a Headline h1 line

# removeTags()  -> ( n7aydo tags b7al dyal html )
{{ "<b>this is ai</b>, <a>bdarija</a>".removeTags() }}   -> this is ai, bdarija

# replaceSpecialChars()  
{{ "déjà".replaceSpecialChars() }}  ->  this is a

# slice()   
{{ $json.name.slice(0,9) }}  ->  this is ai bdarija this is another sentence.
{{ $json.name.slice(0,2) }}  -> th

# toJsonString() -> is only callable on types "Array", "Object", and "String" 
par exemple ila 3adna input fiha number -> "code": 2
{{ $json.code.toJsonString() }}  ->  error ila kan number  -> toJsonString() is only callable on types "Array", "Object", and "String"
{{ $json.code.quote() }}  ->  quote() is only callable on type "String"
{{ $json.code.toString() }}  ->  1

# trim()  -> (kat7ayed espace men l9odam o lekher dyal jomla ) katkhademha fach kat scraper data o katkoun fiha white space
{{ $json.name.trim() }}  ->  this is ai bdarija
{{ " this is ai bdarija".trim() }} -> this is ai bdarija

# urlDecode() ->  n9adro nkhadmoha for URLs n7aydo menhom espace par exemple blog post url
{{ "<https://google.com/maps%20link1%20%20link2>".urlDecode() }}  ->  <https://google.com/maps> link1  link2
{{ "<https://google.com/maps> link1  link2".urlEncode() }}  -> https%3A%2F%2Fgoogle.com%2Fmaps%20link1%20%20link2
{{ "https%3A%2F%2Fgoogle.com%2Fmaps%20link1%20%20link2".urlDecode() }}  ->  <https://google.com/maps> link1  link2

# indexOf() 
{{$json.name.indexOf("is") }}  ->  -2

# match()  ->  kin regular expressions
{{$json.name.match(/this/g) }}  ->  [Array: ["this"]]
{{$json.name.match(/i/g) }}  ->  [Array: ["i", "i", "i", "i"]]
{{$json.name.match(/[Tt]/g) }} -> [Array: ["t"]]

# isDomain()  
{{"aibdarija.com".isDomain() }}  ->  true
{{"<https://aibdarija.com>".isUrl() }}  ->  true

# toUpperCase()  -> ( bach traje3 kolchi majiscule)
{{$json.name.toUpperCase() }}  ->  THIS IS AI BDARIJA
{{$json.name.toLowerCase() }}  -> this is ai bdarija
{{$json.name.toTitleCase() }}  -> This Is Ai Bdarija

# toLowerCase() 
{{$json.name.toLowerCase() }} ->  this is a

# toSnakeCase() 
{{$json.name.toSnakeCase() }}  ->  this_is_ai_bdarija

# toNumber()  ->  ( kinin 7ta ToBoolean()  and parseJson() and toDateTime() )
{{"2025".toNumber() }}  ->  2025

# abs()  -> ( ki3tik la valeur absolu )
{{$json.code.abs() }}  ->  ( ila code kiena 7atin fih -1 ghayrja3 1) -> 1

# ciel()  -> ( ila kan the variable code 7atina fih matalan ra9m 1.23 ghadi i3tina 2 f result mli ndiro ceil()  )
{{$json.code.ceil() }}  ->  2
{{$json.code.floor() }} ->  1

# format()  -> (  katraje3 wa7ed number kifach kitkteb b format local dyal wa7ed lblad )
{{ (10000).format('us-US') }}  ->  10,000
{{ (10000).format('fr-FR') }}  ->  10 000
{{ (10000).format('de-DE') }}  ->  10.000

# isInteger()  -> ( bach t3raf wach dak number mafihch fasila o moujab ola salib  )
{{$json.code.isInteger() }}  ->( ila 3tina l variable 'code' ra9m 1.23 )  false

# keys()  -> (  kat3tina nkharjo ghir keys dyal  key-value pair dyal object )
{{ ({"FirstName":"Yassine","LastName":"Nasser-allah"}).keys()}}  ->  ["FirstName", "LastName"]
{{ ({"FirstName":"Yassine","LastName":"Nasser-allah"}).values()}} -> ["Yassine", "Nasser-allah"]
{{ ({"FirstName":"Yassine","LastName":"Nasser-allah"}).isEmpty()}}  -> false
{{ ({"FirstName":"Yassine","LastName":"Nasser-allah"}).hasField("FirstName")}} -> true

# compact()  -> ( li katmsa7 field li value dyalo empty ola khawya  )
{{ ({"FirstName":"Yassine","LastName":"Nasser-allah","age":""}).compact()}}  ->  {"FirstName": "Yassine", "LastName": "Nasser-allah"}

# keepFieldsContaining()  -> ( ghay3tina fields li ifhom 7orof ola word li 3tinah o ghadi i7ayed lakhrin)
{{ ({"FirstName":"Yassine","LastName":"Nasser-allah","age":""}).keepFieldsContaining("Y")}}  ->   {"FirstName": "Yassine"}
{{ ({"FirstName":"Yassine","LastName":"Nasser-allah","age":""}).keepFieldsContaining("Yassine")}}  ->  {"FirstName": "Yassine"}

# toJsonString() bach tbedel object l string ola dir stringify()
{{ ({"FirstName":"Yassine","LastName":"Nasser-allah","age":""}).toJsonString()}}  → {"FirstName":"Yassine","LastName":"Nasser-allah","age":""}

# urlEncode() → url kikon 3andhom kifach isifto json data 
<https://digimarkgroup.com>?{{ ({"FfrstName":"Yassine","lastName":"Nasser-allah"}).urlEncode()}} -> <https://digimarkgroup.com?FfrstName=Yassine&lastName=Nasser-allah>
Functions li khasin b **Array**

# length()  ->  ( t7seb lina ch7al men item kina )
{{ ([ "Yassine","Oussma","Nabil" ]).length }} → 3

# includes()  ->  ( bach katchouf wach dak array fih dakchi nta li kat9aleb 3Lih
{{ ([ "Yassine","Oussma","Nabil" ]).includes("Yassine") }} ->  true

# map()  ->  mohima katkhalik anak t applyer fonction f data dyalek
ka exmeple  l kola item angolo lih idorbo f 2
{{ ([2,4,6,8,10]).map(item => item*2) }} ->  [4,8,12,16,20]
{{ ([ "Yassine","Oussma","Nabil" ]).map(item => item.length) }} -> [7,6,5]
{{ ([ "Yassine","Oussma","Nabil" ]).map(item => item.length > 6) }} -> [true,false,false]

# filter() 
{{ ([ "Yassine","Oussma","Nabil" ]).filter(item => item.length < 6) }} -> ["Nabil"]

# append()  -> bach n ajouter chi item
{{ ([ "Yassine","Oussma","Nabil" ]).append("skool") }}  ->  [ "Yassine","Oussma","Nabil","skool" ]

# chunk()  -> ay9sem lina array
{{ ([ "Yassine","Oussma","Nabil","skool"]).chunk(2) }} ->  [Array: [["Yassine", "Oussma"],["Nabil", "skool"]]
{{ ([ "Yassine","Oussma","Nabil"]).chunk(2) }}  ->  [["Yassine", "Oussma"],["Nabil"]]

# concat()  -> katjma3 jouj arrays
{{ (["Yassine","Oussma"]).concat(["Nabil","skool"]) }} ->  ["Yassine", "Oussma", "Nabil", "skool"]

# difference()  -> katl9a lik fin kin khtilaf ina item
{{ ([ "Yassine","Oussma","Nabil","skool"]).difference([ "Yassine","Oussma","Nabil"]) }} ->  ["skool"]

# join()  ->  katraje3 array l string o i9semhom bchi 7aja kidir l3aks dyal split 
{{ ([ "Yassine","Oussma","Nabil","skool"]).join(",") }} ->  Yassine,Oussma,Nabil,skool
{{ ([ "Yassine","Oussma","Nabil","skool"]).join("+") }}  ->  Yassine+Oussma+Nabil+skool
{{ ([ "Yassine","Oussma","Nabil","skool"]).join(" and ") }} -> Yassine and Oussma and Nabil and skool
{{ ([ "Yassine","Oussma","Nabil","skool"]).join() }}  ->  Yassine,Oussma,Nabil,skool

# randomItem()  -> kijbed random item matalan 3andek leads takhod chi ID o tfeeder fih random person or something 
testiha bzf lmarat o kola mara ki3tik item f chkel
{{ ([ "Yassine","Oussma","Nabil","skool"]).randomItem() }}  -> Yassine
{{ ([ "Yassine","Oussma","Nabil","skool"]).randomItem() }}  -> Oussma

# reverse()  -> ki reverser tartrib dyal items
{{ ([ "Yassine","Oussma","Nabil","skool"]).reverse() }} ->  ["skool", "Nabil", "Oussma", "Yassine"]

# smartJoin()  -> kijma3 key o value
{{ ([ {"field":"firstName","value":"Yassine"},{"field":"lastName","value":"Nasser-allah"}]).smartJoin("field","value") }} ->  {"firstName": "Yassine", "lastName": "Nasser-allah"}

# sort()  ->  katrateb b 7orof
{{ ([ "Yassine","Oussma","Nabil","skool"]).sort() }} ->  ["Nabil", "Oussma", "Yassine", "skool"]

# unique()  ->  t7ayed duplication
{{ ([ "Yassine","Oussma","Nabil","skool","Yassine","skool","skool","oussama" ]).unique() }} ->  ["Yassine", "Oussma", "Nabil", "skool", "oussama"]


website bach t verifier JSON

Best JSON Formatter and JSON Validator: Online JSON Formatter