Problems

Interpolate the Template

EasyJSX & Rendering

JSX interpolates expressions in braces. Input: line 1 — a template containing {name} and {count} placeholders; line 2 — values JSON {"name":..., "count":...}. Print the template with placeholders replaced.

Input: two lines. Output: the rendered string.

Your program reads from stdin and prints to stdout.

Example 1

Input: Hello {name}, you have {count} messages {"name":"Ada","count":3}

Output: Hello Ada, you have 3 messages

Hints

ReactJSXInterpolation