E: Couldn't find any package by regex 'php7.2-json'
snippet in php

E: Couldn't find any package by regex 'php7.2-json'

user8553

sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0