Typo fixes related to jerry_json_stringify (#2611)

JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
This commit is contained in:
Daniel Balla
2018-11-22 01:05:34 +00:00
committed by Akos Kiss
parent c87aa83b0d
commit f9e21540d6
4 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -5991,7 +5991,7 @@ jerry_value_t jerry_json_parse (const jerry_char_t *string_p, jerry_size_t strin
}
```
## jerry_stringify
## jerry_json_stringify
**Summary**
@@ -6000,7 +6000,7 @@ jerry_value_t jerry_json_parse (const jerry_char_t *string_p, jerry_size_t strin
**Prototype**
```c
jerry_value_t jerry_json_stringfy (const jerry_value_t object_to_stringify)
jerry_value_t jerry_json_stringify (const jerry_value_t object_to_stringify)
```
- `object_to_stringify` - a jerry_value_t object to stringify
@@ -6016,7 +6016,7 @@ jerry_value_t jerry_json_stringfy (const jerry_value_t object_to_stringify)
jerry_value_t key = jerry_create_string ((const jerry_char_t *) "name");
jerry_value_t value = jerry_create_string ((const jerry_char_t *) "John");
jerry_set_property (obj, key, value);
jerry_value_t stringified = jerry_json_stringfy (obj);
jerry_value_t stringified = jerry_json_stringify (obj);
//stringified now contains a json formated string